javascript - My html file for pie chart using flotr is not fully working -


I'm just trying to draw a simple pie chart using flotr (an open to the development of different charts Source javascript) but the code I gave was a small part. The chart was prepared and explosion properties, horizontal and vertical lines all work fine. But mouse trackers and legends are not working. I think I have made a mistake in the code. But I am not able to clean it. Anybody please help me please thank you in advance.

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "prototype -1.6.0.2. Js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "flotr.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" style = "width: 600px; height: 300px;" & Gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; (Functions Basic_pany (container) {var d1 = [[0, 4]], d2 = [[0, 3]], d3 = [[0, 1.03]], d4 = [[0, 3.5]] , Graph; Flatr.draw ('Container', [{Data: D1, Label: 'Comedy'}, {Data: D2, Label: 'Action'}, {Data: D3, Label: Romance (Vertical lines: false, horizontal rows: wrong), xxis: {showbills: {blast: 50}}, {data: D4, label: 'drama'}], {html text: false, grid: {vertical lines: false} False}, yaxis: {showLabels: false}, pie: {show: true, explosion: 6}, mouse: {track: right}, legend: {status: 'from', background color: # D2E 8FF}}}}}} () Document (Document AttributeBiID ("render -0"));     

You may have an error in your legend configuration, Given and legend appeared correctly. Take a look:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -