Note that there are some explanatory texts on larger screens.

plurals
  1. POI'm trying to use highcharts to display a series of points not just x and y
    primarykey
    data
    text
    <p>I have a chart that displays <code>[x,y]</code> using highcharts .I want to use more than <code>[x,y]</code> when I specify in an array say <code>minimum value, maximum value</code>. I have an array like this: <code>array1[['apples',no of apples,11,12],['oranges',no of oranges,1,2]</code></p> <p>How do I employ this array in my following chart? I understand I have to specify this <code>array1</code> in the series option. But which chart should I use? How do I represent the point in the chart when it has more than <code>[x,y]</code> option in the array defined as above.</p> <pre><code>$(document).ready(function fruits() { $('#container').highcharts({ title: { text: 'fruits' }, xAxis: { categories: ['Apple', 'Orange'] }, yAxis: { title: { text: 'No of fruits' }, tickInterval: 10 }, series: [{ name: 'Fruits', data: [ ['apple', 29.9], ['orange', 71.5] ] }] }); }); </code></pre> <p>For example,if i use column range chart I have min and max values under the same point. But I need no of fruits, mean and median also to be included in the same chart.I don want to draw a separate line for mean and median instead use a single line for each point that shows no of fruits,min,max,median inthe tool tip.I want data to be [apple,5,4,12.5,10] $(function () {</p> <pre><code>$('#container').highcharts({ chart: { type: 'columnrange', inverted: false }, title: { text: 'Temperature variation by month' }, subtitle: { text: 'Observed in Vik i Sogn, Norway, 2009' }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, yAxis: { title: { text: 'Temperature ( °C )' } }, tooltip: { valueSuffix: '°C' }, plotOptions: { columnrange: { dataLabels: { enabled: true, formatter: function () { return this.y + '°C'; } } } }, legend: { enabled: false }, series: [{ name: 'Min and Max', data: [ [-9.7, 9.4], [-8.7, 6.5], [-3.5, 9.4], [-1.4, 19.9], [0.0, 22.6], [2.9, 29.5], [9.2, 30.7], [7.3, 26.5], [4.4, 18.0], [-3.1, 11.4], [-5.2, 10.4], [-13.5, 9.8] ] } ] ] }); </code></pre> <p>});</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload