Note that there are some explanatory texts on larger screens.

plurals
  1. POTwo columns with two legend items in highchars.js
    primarykey
    data
    text
    <p><strong>i need this in highcharts.js:</strong></p> <ul> <li>two columns </li> <li>two items in legeneds - each for column with own colors</li> <li>label bottom of each columns</li> </ul> <p><strong>as you can seen on bottom placed image</strong></p> <p>i have this - <a href="http://jsfiddle.net/A9ZYN/" rel="nofollow noreferrer">jsfiddle</a> - but legends have only one item..</p> <pre><code>var options = { "chart":{ 'renderTo': 'container', "type":"column" }, "title":{ "text":"", "style":{ "display":"none" } }, "xAxis":{ "categories":[ "Average", "Your value" ], "title":{ "text":"x label", "style":{ "font":"bold 16px Verdana", "color":"#000" } } }, "yAxis":{ "min":0, "title":{ "text":"y label", "style":{ "font":"bold 16px Verdana", "color":"#000" } } }, "legend":{ "align":"center", "itemDistance":20, "verticalAlign":"top", "margin":25, "floating":false, "borderColor":"#CCC", "borderWidth":1, "shadow":false, "borderRadius":0 }, "series":[ { "color":"#0066FF", "data":[ { "y":50, "color":"#372A4B" }, { "y":30, "color":"#1EC37A" } ] } ] }; var chart = new Highcharts.Chart(options); </code></pre> <p>or this - <a href="http://jsfiddle.net/A9ZYN/1/" rel="nofollow noreferrer">jsfiddle</a> - but no bottom label for each column</p> <pre><code>var options = { "chart":{ 'renderTo': 'container', "type":"column" }, "title":{ "text":"", "style":{ "display":"none" } }, "xAxis":{ "categories":[ ["Average"], ["Your value"] ], "title":{ "text":"x label", "style":{ "font":"bold 16px Verdana", "color":"#000" } } }, "yAxis":{ "min":0, "title":{ "text":"y label", "style":{ "font":"bold 16px Verdana", "color":"#000" } } }, "legend":{ "align":"center", "itemDistance":20, "verticalAlign":"top", "margin":25, "floating":false, "borderColor":"#CCC", "borderWidth":1, "shadow":false, "borderRadius":0 }, labels: { items: [{ html: "Legend 1", style: { top: '10px', left: '20px', height: '30px' } }, { html: "Legend 2", style: { top: '10px', left: '120px', height: '30px' } }] }, "series":[ { "color":"#372A4B", "name": "Average", "data":[ { "y":50 } ] }, { "color":"#1EC37A", "name": "Your value", "data":[ { "y":30, } ] } ] }; var chart = new Highcharts.Chart(options); </code></pre> <p><strong>but what i need is exactly as you can see on this image:</strong></p> <p><img src="https://s22.postimg.org/mt95mvdld/report.gif" alt=""></p>
    singulars
    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.
    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