score:4
Accepted answer
Could you please try following:
String rangeSelectorConfig = " {\n" +
" buttons: [{\n" +
" type: 'day',\n" +
" count: 3,\n" +
" text: '3dias'\n" +
" }, {\n" +
" type: 'week',\n" +
" count: 1,\n" +
" text: '1w'\n" +
" }]" +
" }" ;
JSONValue config = JSONParser.parseLenient(rangeSelectorConfig);
chart.setOption("/rangeSelector", config);
Chart
class (with help of Configurable
) doesn't parse JSON objects for you, so buttons in your code were passed as string literals to native HightCharts JS.
Source: stackoverflow.com
Related Query
- Customizing the Stockchart range selector buttons from HighCharts library in GWT (and Javascript in general)
- Selecting a point programmatically on stockchart from HighCharts library in GWT (Also in native JS)
- How can I disable the Highstocks range selector buttons when loading data asynchronously?
- highcharts range selector buttons spacing issue
- Resize Highcharts StockChart range selector to lessthan 6 data points
- Highcharts range selector buttons and input filter not working
- Highcharts range selector date formats from C#
- Highstock, how to offset all Y data from a serie on clicking range selector buttons
- Query selector for the individual buttons in range selector
- How to call another function on changing the time range selector and date selector in Highcharts stock?
- HighCharts Hide Series Name from the Legend
- What format does the highcharts js library accept for dates?
- How to disable range selector from highstocks charts
- Customizing the colors of individual series in HighCharts
- How can I remove the white border from HighCharts pie chart?
- How can I delete all of the points from a highcharts series
- Highcharts - how to remove "Open in Highcharts Cloud" from the export menu
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- Add onclick event on chart made with the highcharts library
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts (Highstock) how to manually set the navigator selected range
- Adjust Highcharts data grouping based on range selector
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Can a Highcharts range selector use non-date linear ranges?
- Highcharts stock chart - Technical Indicators - Stock price is missing in the tooltip when selecting the 'All' range
- Highcharts change the line color if its out of the area range
- Get the currently selected range from RangeSelector in Highstock
- How to remove the value and number labels from Highcharts angular gauge
- Highcharts basic bar graphs. How to remove strokewith from the bars
More Query from same tag
- DataLabels in Highcharts are outside the container / not showing
- high chart date format in x-axis
- HighCharts Line Chart draw y axis line for entire line points and only one line
- Set color of Highcharts series bar based on value
- Anything other than 'bar' chart breaks highcharts.js
- How to auto save highcharts as image in specific folder
- Hover on areas not on point in Highchart-polygon
- Highcharts bar chart with negative and positive data
- high-charts datalabel position needs to change when value is too small
- jQuery HighCharts colour by column
- Highcharts not showing all labels for rows
- httphandler cannot find axd of Highcharts
- HighMap displaying issue with customized json file
- Is it possible to get axis lines to cross with highcharts
- Highcharts - sorting JSON data JavaScript
- Highcharts different data same chart
- Density Plot in R Highcharter
- Highcharts saying undefined is not a function when trying to add a new chart
- Highchart bubble-chart : Show Y-Axis value as numeric range
- Displaying additional text for Highcharts Bubble chart
- Changing the cursor in highcharts
- Highchart in ASP MVC page load not working properly
- Formatting XAxis labels when rendering chart on server using phantomjs and JSON
- To display legend of the chart outside the canvas of the chart in highcharts
- Highchart Crosshair not touching x axis
- JS Charts Library
- Is possible to set min and max zoom in Time series Highcharts?
- Highcharts change serie type without change datalabels
- how to display total count of all the bar values at the top- Highcharts colum- react highhcharts
- Highchart not adding new series or removing old series