• Resolved robby_rob

    (@robby_rob)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author randyjensen

    (@randyjensen)

    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!

    Thread Starter robby_rob

    (@robby_rob)

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

    Rob

    Thread Starter robby_rob

    (@robby_rob)

    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

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change width of lines in line charts?’ is closed to new replies.