I am using highcharts pie charts. I am geting the series data from a
text file. If I have no data in text file, can I display 'no data' text display at the center of the circle?
You can prepare two divs, first with potentional highcharts, second (hidden, positioned) with alert. Then when you use ajax, and you have data, chart is initialized, in other way (no data) hidden alert is visible.
Related
In the chart that I am creating there is no tooltip on the first data entry. The graph is aligned with no margins within a container so that the first data entry is the border of the xAxis on the left and last data entry is the edge of the graph on the right.
On the example I am giving the link to, it will show the tooltip when you resize the graph into a smaller version (pictures attached).
Does anyone know why the tooltip is missing?
Here is a link to code online
I am trying to use line chart, where I am using data with line series.
For that purpose I am using the legend. When clicked the legend, the following value will be hidden, and when I click the last one it also gets hidden, in my scenario last value should not get hidden so that at least one should be active.
I have done this in pie chart series but I can't implement this in line chart why?
- [Js Fiddle Pie Chart Demo][1]
- [Js Fiddle Line Chart][2]
var points = this.chart.series
JSFiddle
I am new to highcharts and trying to show the chart and data at the same time.
Like the whole display should be like this.
First column : Station Name(data)
Second column : horizontal bar
Third column : Data.
Is it possible to paint it only using highcharts API's ?
Thanks
Sukanta
You are basically talking about a regular bar chart with a categorical axis and data labels:
http://jsfiddle.net/JVNjs/288/
categories:['group a','group b','group c','group d','group e']
I don't think that there is a default setting that will align the data labels all to the right in a column as you requested, but I am sure there is a workaround that will allow it to be done.
I have two series charted, on mouseover both data point values appear in a popup window. Can you set it that only one of the data series is shown inside this box?
It's controlled by tooltip.shared, which does this when true:
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/tooltip/shared-true/
When false, you should see individual tooltips:
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/tooltip/shared-false/
In regular HighCharts it defaults to non-shared, but HighStock defaults to shared.
When using Highcharts, is it possible to change the contents of the legend to display something other than the series?
For example, I have a scatter chart with just one series but with many elements, so that the element labels obstruct one another and are illegible:
Would it be possible to use the legend to display the element names instead of the series? (each member in the series has a different color so that it is possible to use the legend in this case)
EDIT:
It turns out there isn't any good way to do this, so I wrote my own custom legend. You can find the code here: http://pastie.org/5115536
I hope you find it useful
Highcharts allows to show data points instead of series name in the in the legend. But, Unfortunately its only for Pie charts type:pie.
There is a default option available for the Pie Chart though undocumented in the API.
legendType: 'point',
If you try to set it for other type of chart, Legend does not gets rendered.