broken bar charts in html5 document (release 1.0.4r1121)

blonchk avatarblonchk created an issue

Hi

Here attached as a zip file are two bar chart snippets from official jqplot examples.

  • chartSnippet.html is an HTML5 document not rendering bar chart
  • plotSnippet.html is an XHTML transitionnal document rendering bar chart correcrtly.

I'm using jqplot 1.0.4r1121, firefox 18.0.1 (ubuntu 12.04). Hope it may help you toubleshot this excellent framework :)

Kindest regards

Comments (6)

  1. blonchk

    (Reply via bibl...G-MAIL.com):

    Hello, Paul I've changed my declarations, adding ` type="text/javascript" ´ to the script tag, accordingly your typ for html5.

    Unfortunatly, this change do not resolve the issue. The bar chart doesn't show. Furthermore, line charts are working perfectly, with or without the added `type´ attribute in html5 document.

    I'm javascript newbe and i don't know how to proceed further. Has other people reported analog issues or am i the only case?

    Anyway, i'm ready to investigate further on hand your tips.

    Kind regards Bertrand

    2013/2/8 B. Iblonchk biblonchk@gmail.com:

    --- you can reply above this line ---

    Issue 716: broken bar charts in html5 document (release 1.0.4r1121) https://bitbucket.org/cleonello/jqplot/issue/716/broken-bar-charts-in-html5-document

    Paul Pritchard:

    In the HTML5 document if you add type="text/javascript" to the <script> tags, the chart will display correctly.

    --

    This is an issue notification from bitbucket.org. You are receiving this either because you are the owner of the issue, or you are following the issue.

  2. Paul Pritchard

    Nobody else has reported a similar issue. You might want to make sure that you are including the bar chart plugin. Otherwise, make a jsfiddle.net example that shows the problem.

  3. blonchk

    Solved! I had a typo in the script tag for jqplot.categoryAxisRenderer.js. Now, everything's working perfectly for both html5 and xhtml. I thank you very much for your helpfull tips and your patience.

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.