Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem creating charts with bars #16

Closed
GoogleCodeExporter opened this issue Apr 14, 2016 · 2 comments
Closed

Problem creating charts with bars #16

GoogleCodeExporter opened this issue Apr 14, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hi!

I tried to find out the best way to create a chart with bars.

I use the following statement to declare the data:

{data: [[0,28], [0,28]],label: “label goes here”,bars: {show: true } },

I think it is a little bit redundant to specify [0,28] twice, but if I try
something like
{data: [[0,28]],label: “label goes here”,bars: {show: true } },
only the legend is shown, but no bars. What am I doing wrong?

(maybe it is a stupid question because it works if I use the first
statement, but it seems to me that even the bars are painted twice, so the
colors (originally pastel colors) are much darker.

Best regards! 

Original issue reported on code.google.com by sdsf...@gmail.com on 16 Dec 2007 at 11:43

@GoogleCodeExporter
Copy link
Author

If you edit the jquery.flot.js file around line 850 in the drawSeriesBar 
function and
remove the data.length requirement (lines 852-3) it fixes the problem. At least 
in my
app. I've tested it in IE7 and FF3B1. Its in there for a reason, I'm sure, but I
haven't found a place where it brakes my app yet. I'm using flot 0.3 for line 
references.

I've done this edit in the pack file too, works the same.

I'm not using tick marks on the x axis so I don't know how that is affected if 
at all.

Original comment by travis.g...@gmail.com on 17 Dec 2007 at 10:30

@GoogleCodeExporter
Copy link
Author

Fixed in SVN. I'll make a release soon. Sorry that it took so long, it was 
trivial,
indeed.

Original comment by olau%iol...@gtempaccount.com on 5 Mar 2008 at 6:58

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant