1
是否可以在敏銳的儀表板圖表上設置Y軸上的最大值和最小值?Keen.io儀表板圖表上的最大和最小Y軸值
我下載儀表板從該GitHub庫:
https://github.com/keen/dashboards
我有一個垂直列圖表像下面,我想設置在y軸的最小值爲70,最大到是90,我該怎麼做?
<div class="col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">
Alex Weight (kg)
</div>
<div class="chart-stage">
<div id="chart-01"></div>
</div>
<div class="chart-notes">
</div>
</div>
</div>
var query = new Keen.Query("maximum", {
eventCollection: "weight",
interval: "daily",
targetProperty: "value",
timeframe: "this_14_days",
timezone: "Australia/Sydney"
});
client.draw(
query, document.getElementById("chart-01"), {
height: 150,
width: '100%',
chartType: 'columnchart',
hAxis: {
format:'d MMM'
}
}
);