Actually I am new to highcharts. I am having a problem while plotting multiple bar series in using highcharts. From controller, I get the arrays of objects. How i will be able to pass it to data to plot it in multiple series. For example, I have 3 arrays of objects. I want to plot these arrays in 3 different series. How I can be able to accomplish it?
Related
I have a question about several stock charts.
Put the series data into an array by name.
Hovering over the chart shows only one data.
I am curious how to make several together.
My code is here:
https://jsfiddle.net/HongRaeCho/rxpjy7nu/
I am trying to plot three time-series data from csv in a single chart using highcharts. Before plotting the data I am normalizing the data so that all the three data sources plot data which can be easily compared for a given range.
But when I use the tooltip I want to show what the original value of the data is in the tooltip on hover.
I looked at the tooltip formatter but could not get through for changing the value for only one of the data series.
I'm trying to set two Waterfall series using Highcharts in the same chart, I have only see one serie in this type of chart in Highcharts samples. I have manipulate the data to be an array but still not working.
I mean two independent waterfall series (one next to each other no-stacked) , like column chart. Like this one (http://img854.imageshack.us/img854/6886/qghm.png)
I want to get all series data in highstock callback function. Please see this fiddle, serie.data are all empty array.
The very strange thing is it related to rangeSelector. If I set to this way
rangeSelector: {
selected: 4
},
It will return data.
Following is what the series.data documentation says
data
Read only. An array with the series' data point objects. In case the
series data length exceeds the cropThreshold, or if the data is
grouped, series.data doesn't contain all the points. It only contains
the points that have been created on demand. In these cases, all
original X and Y values can be read from series.xData and
series.yData. Additionally, series.options.data contains all
configuration objects for the points, whether they be numbers, arrays
or objects. Returns
Array
series.data only contains certain data and not all the points and looking at the source code it seems series.data is populated when the series is cropped or translated, hence setting rangeSelector.selected=4 results in cropping and hence data array is populated. For some reason it appears series.data is left empty if all the data is shown, this happens when rangeSelector.select=5. I would advice against using series.data for this unpredictable behavior
Use series.points if you want the points that are currently visible, or use series.options.data (or series.options.xData or
series.options.yData) to get all data (or xData array or yData array)
Like many Highstock users, our data is retrieved from a database by way of Ajax queries. The series data sets are all time-based, but have different purposes and data ranges.
I can add multiple series to the chart no problem. Works great. However, how can I dynamically (emphasis on dynamically) add companion axes to these series (axis title and range)? I've scoured the documentation and forums but can't figure out exactly how to associate the new axis with the new series.
Thanks!
The only way to do this (as far as I know) is to add multiple empty axes to your chart, and then set them programmatically. It's a hack - but it works:
http://livecoding.io/3431916