Can't get a key to display on a combined chart

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by James Brown on 5th March 2014
I can't get a key to be displayed on a combo graph with 1 bar chart and 2 line graphs. Below is a sample of my code. I have tried adding a simple key with a couple of keys to no avail. If you like to see what I'm working on go to

             var bar = new RGraph.Bar('cvs2', monthlyPower1)
                 .Set('labels', monthlyLabels)
                 .Set('tooltips', monthlyToolTips1)
                 .Set('linewidth', 0)
             var line = new RGraph.Line('cvs2', [avgConsumed,avgConsumed])
   .Set('noaxes', true)
   .Set('linewidth', 1)
   .Set('colors', ['#d00'])
   .Set('linewidth', 2)
             var line1 = new RGraph.Line('cvs2', [avgGenerated,avgGenerated])
   .Set('noaxes', true)
   .Set('linewidth', 1)
   .Set('colors', ['#0f0'])
   .Set('linewidth', 2)
      var combo = new RGraph.CombinedChart(bar, line, line1);
Posted by Richard on 5th March 2014
Hi there,

Well you haven't specified a key that I can see or even included the key library file - RGraph.common.key.js.


Add a reply

« Back to message list