WordPress.org

Ready to get started?Download WordPress

Forums

RJ Quickcharts
[resolved] RJ Quickharts - Changing values of Y axis (12 posts)

  1. Tzini
    Member
    Posted 12 months ago #

    Hello and thank you for the plugin!

    It works great and it's really easy to handle.

    I created a chart for the annual visitors and the min value of the Y axis is -5000.

    I would like to ask you if there is a way to change the default values of the Y axis somewhere in your plugin files?

    Thank you!

    http://wordpress.org/extend/plugins/rj-quickcharts/

  2. randyjensen
    Member
    Plugin Author

    Posted 12 months ago #

    Hi Tzini,

    I think I am understanding your question correctly.

    Right now, there isn't any way to change the defaults for that. The best thing would be to create a chart that is exactly what you want your "defaults" to be, then just duplicate that whenever you need a new chart.

    Let me know if that helps!

  3. Tzini
    Member
    Posted 11 months ago #

    Thank you for your reply!

    First of all how and where can i create the chart with the desired values?
    To be more precise with my issue,i'm creating a chart for the annual visitors of my company.The min value(Y axis) if the visitors is 9000 and the max value is 26000.While inserting the specific values the Y axis starts from 0 to 30000 with "step"=5000 when i insert the maximum value 26000 the Y axis changes its values from -5000 to 30000.

    So,is there a way to keep its original values 0-30000 or do i have to create a chart with these specific values and then insert it wherever i need it(and if so,i really don't understand how :/)?

    Thank you in advance!

  4. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    You just enter all your data in to the spreadsheet in the edit screen. Use the default values as a guide. Once you're done, just save.

    What browser are you in? What version of WP are you running?

  5. Tzini
    Member
    Posted 11 months ago #

    I think i did all that..But my Y axis(despite the fact that my enterd values are above 0) does not start from 0!

    I'm using Mozilla Firefox and WordPress 3.4.2..
    I'll post a screenshot for my line chart,to show you my problem with the Y axis..Although all of my values are positive numbers,the Y axis starts from -5000!

    Line Chart Screenshot!

    I hope it helps!

  6. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    I would need to see the data you entered from the spreadsheet.

    You should also change the height of the chart since your values are so long.

  7. Tzini
    Member
    Posted 11 months ago #

    I'm posting a screenshot from the first and the second step when creating a chart,in the second step is all the data I entered.

    How am I changing the height of my chart???

    Thanks again!


    Step 1 and 2

  8. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    It looks like you haven't updated to the latest version of the plugin. Instead of updating normally, try actually deleting the plugin and re-installing it. This will _not_ delete any of your charts.

    I'm also not sure why you have all that null data. Hopefully the steps above will fix it.

    Once you do that, let me know if you are still having issues.

  9. Tzini
    Member
    Posted 11 months ago #

    Hi Randy,

    i updated to version 0.5.5 and i can now see the height you said that i should change.But my problem still remains..In the Y axis the minimum value is -5000,when my actual minimum value of the entered data is 2343.

    Thank you for your answers!If you have any other idea about my issue,please let me know!

    I'm posting another screenshot so you can see the updated version!

    Entered data
    Chart

  10. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    After going through your data, I see where this is happening.

    There is such a range of data, on the high end you have 16,777 and on the very low end you have 2,343. The graphing library always needs to have a lower bar for spacing which is why it's adding the -5000.

    2343 is actually right on the threshold of the algorithm for this. You can see in the first image the -5000 exists (because it increments by 5000 and 2343 is less than 2500)

    http://img836.imageshack.us/img836/993/9vs2.png

    But in this image, I've changed the value to 2500 and the -5000 axis is gone

    http://img809.imageshack.us/img809/7841/jm22.png

  11. Tzini
    Member
    Posted 11 months ago #

    I noticed that too,when I entered the values one by one.The moment i inserted value "26.239" it immediately added -5000 to the y axis!

    Is there a way to change this,so i can have the right data inserted into my chart and the -5000 gone???

    Thank you so much!!! :)

  12. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    No. The charting library is working properly, this is just an extreme edge case. Sorry.

Reply

You must log in to post.

About this Plugin

About this Topic