0
我的線圖上不顯示十進制值,而不是它是四捨五入在y軸上線圖四捨五入刻度值(rgraph)
var line1 = new RGraph.Line({
id: 'cvs',
data: [
[5.85, 5.86, 5.87, 5.88, 5.89, 5.90, 5.91, 5.92, 5.93, 5.94]
],
options: {
linewidth: 1,
backgroundGrid: false,
title: 'X-Chart',
colors: ['red'],
fillstyle: 'rgba(255,0,0,0.2)',
ymin: 5.75,
ymax: 6,
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
scale: 0.2,
textAccessible: true
}
}).draw();
十進制值謝謝
請添加代碼段 – muneebShabbir
變種LINE1 =新RGraph.Line({ ID: 'CVS', 數據:[ [5.85,5.86,5.87,5.88,5.89,5.90,5.91,5.92,5.93 ,5.94] ], 選項:{ 線寬:1, backgroundGrid:假, 標題: 'X-圖表', 顏色:[ '紅'], 填充樣式:「RGBA(255,0,0, 0.2)', ymin:5.75, ymax:6, 標記:[1,2,3,4,5,6,7,8,9,10], 比例: 0.2, textAccessible:真 } })繪製(); –
編輯你的問題,並添加此代碼存在。這將有助於用戶瞭解你的問題 – muneebShabbir