Is it possible to set minimum/maximum Y-axis values in Keen Dashboard Charts?

56 views
Skip to first unread message

Alex L

unread,
Mar 5, 2016, 5:21:49 PM3/5/16
to Keen IO Community
Hi Guys,

Is it possible to set maximum and minimum values on the Y-axis on keen dashboard charts?

I have a vertical column chart like below, I want to set the minimum value on the y-axis to be 70 and the maximum to be 90, how can I do this? :

  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'
}
  }
  );

Justin Johnson

unread,
Mar 15, 2016, 6:17:43 PM3/15/16
to Keen IO Community
Hi Alex,

Thanks for the questions. You can set custom preferences for either axis in chart options. Here's a little more info on that here

The underlying visualization library for Keen JS is Google Viz.

Hope this is helpful.

Justin

Taylor Barnett

unread,
Mar 15, 2016, 6:22:35 PM3/15/16
to Keen IO Community
I replied with this last week, but I forgot to reply all:

Awesome! It looks like you figured it out, just in case anyone else is interested: http://stackoverflow.com/questions/35839311/maximum-and-minimum-y-axis-values-on-keen-io-dashboard-charts

Taylor Barnett
Developer Evangelist at Keen IO

Come hangout with me on Slack

Reply all
Reply to author
Forward
0 new messages