• Resolved pekos

    (@pekos)


    Hi Antoine

    I am pretty sure the first chart in the statistics page used to be of column type, however for some reason the chart I am seeing is not of this type:

    Do you know how can I get back the column type charts?

    Thanx

    • This topic was modified 5 months, 2 weeks ago by pekos.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author AntoineH

    (@antoineh)

    Well, this is strange indeed. The first chart on the statistics page for a single user (view=user) is a pie chart:

    On the statistics page (without view parameter, or when comparing players), the scores are plotted as columns:

    I do see that the Charts class has “line” as the default parameter value, but looking at the code I can’t really think of a reason why it is defaulting to this value. Do you have any errors or warnings in your error log that are related to the stats page or Charts class?

    When you inspect the code, which classes does the wrapper div have? Should be something like this:

    <div id="chart6-wrapper" class="chart-wrapper column-chart chart stats-page">
    Thread Starter pekos

    (@pekos)

    This is exactly the same as what I have in my page:

    <div id="chart6-wrapper" class="chart-wrapper column-chart chart stats-page">

    Is something else like a json object controlling the type of charts which is missing or udpated in later highchart version?

    Thanx

    Plugin Author AntoineH

    (@antoineh)

    Which version of HC do you have?

    Thread Starter pekos

    (@pekos)

    Latest…. I will try to upload earlier version and come back to you… However please do also a check on your side if there is need to update json or class.

    Thanx

    Thread Starter pekos

    (@pekos)

    Just checked with earlier version and I still get the same chart type (not the column-chart)

    Plugin Author AntoineH

    (@antoineh)

    Do you get any errors in your javascript console in the browser? The Highcharts are a javascript lib, so there might be some conflict on the frontend.

    Anyway, I also changed the way that I set the chart type in the class (as a quick test). Curious if this makes a difference on your install. It’s difficult to find a cause when I can’t reproduce the error.

    You can download the file here (if you are willing to test). The file should be placed in the /classes folder.

    Thread Starter pekos

    (@pekos)

    Hi Antoine

    well it actually does make the difference. This is the new chart type i got after uploading the file you sent me.

    So, once again, i have to thank you for troubleshooting quickly and successfully.

    If you need for any tests or reports from my side, I will help you.

    I did not answer before, but I did not see any errors in the console.

    Thank you

    Plugin Author AntoineH

    (@antoineh)

    Thanks for testing. I will do some more regression tests on my install and will include the fix in the next version (v2.12.0) to prevent this from happening again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.