I’m using jqplot to draw a simple bar chart however only half of the first and last bar are being rendered.
here is the image
Is there a way to make the chart fit inside??
Thanks
UPDATE
On xAxis I’m using dateAxisRenderer as a renderer.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Under the
axes: { xaxis: { } }options I would try using the:options. Bump of the pad first, if that doesn’t work, you should try setting min and max values slightly larger than your data range.
EDITS FOR COMMENTS
I think you’ll find it much easier to work with dates if you go with the javascript standard of number of milliseconds since 1970/01/01. This is why you get an error using min/max as strings. Specify it like this:
Using this min/max:
The next hurdle is that your dates do not have times. JQPlot is taking these to be the very first minute of that day, so they line up with the label accordingly. If you want them to center align you’ll need to specify a 12:00pm time. Again you can parse that from the string, but I would switch over to milliseconds.