chart option ui : unit increment not working

15 views
Skip to first unread message

MrPea

unread,
Jul 4, 2017, 7:45:14 AM7/4/17
to Google Visualization API

I have a Google Chart with a 'number filter' control. Here's the control's code:

   var liquidityRangeSlider = new google.visualization.ControlWrapper({
  controlType: 'NumberRangeFilter',
  containerId: 'filter3_div',
  dataTable: result,
  options: {
    filterColumnLabel: 'Liquidity',
    minValue: result.getColumnRange(2).min,
    maxValue: result.getColumnRange(2).max,
    ui: {unitIncrement : 0.1}
  },
  view: {columns: [2]}
});

 liquidityRangeSlider.draw();

when the filter renders, the slider can only be adjusted in units of 1 as opposed to the unitIncrement option of  0.1

I have found that a bug was raised a couple of years ago here but nothing has moved on that thread for a couple of years. Can anyone confirm if my code is incorrect or, in fact, that the bug is still there.

thanks

Reply all
Reply to author
Forward
0 new messages