WordPress.org

Ready to get started?Download WordPress

Forums

RJ Quickcharts
[resolved] Change width of lines in line charts? (5 posts)

  1. robby_rob
    Member
    Posted 11 months ago #

    Hi,

    Awesome plugin! I was wondering if it would be possible to change the line widths for line charts to make them a bit bolder or thicker. I've gotten a few complaints that they are a bit hard to read. This would be a global change across the line charts on the site. I've looked around in the code, but I haven't found it yet. Any help you could provide is appreciated.

    Thanks!

    Rob

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

  2. randyjensen
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Rob,

    Glad the plugin is working for you :)

    Until I can add the option to increase the line width, you can hack the plugin to work for you.

    Open: /shortcode/init.php

    Then look for line 136. You should see:

    seriesDefaults: {
    renderer: r,
    ......

    Add one line so it looks like this:

    seriesDefaults: {
    lineWidth: 5,
    renderer: r,
    ......

    You can change 5 to whatever you want to increase the boldness of the lines.

    Hope that helps!

  3. robby_rob
    Member
    Posted 10 months ago #

    Awesome, I will give that a try. Thanks for your quick help!

    Rob

  4. robby_rob
    Member
    Posted 10 months ago #

    Hi Randy,

    Thanks again for sharing this code. Unfortunately I've tried it a few times, and it doesn't seem to change the line width at all. I tried a few different browsers just to be sure, and even tried adding "px" after the line width size. Any thoughts as to what I might be doing wrong?

    Thanks again for all your help!

    Rob

  5. Wazomba
    Member
    Posted 10 months ago #

    Hi Robby / Randy! That trick worked fine for me.

Reply

You must log in to post.

About this Plugin

About this Topic