WordPress.org

Ready to get started?Download WordPress

Forums

SKT Skill Bar
Other Function Parameters (3 posts)

  1. jborbj
    Member
    Posted 5 months ago #

    Hi there! I see that you are using the jQuery Easy Pie Chart JS in this plugin for the Skill Circle, but are only passing a few variables through to the plugin - is there a way to pass more through? For example, there's a list of parameters at http://rendro.github.io/easy-pie-chart/ that would be great, but is there a way to get them into the shortcode? My code currently is:
    <?php echo do_shortcode('[skillwrapper type="circle" track_color="#E9E9E9" chart_color="'. $colors['main1'] .'" chart_size="200" align="center"][skill percent="88" title="Purchased"][/skillwrapper]'); ?>

    but there are many other variables that would be beneficial and are already part of the JS. Thanks!

    https://wordpress.org/plugins/skt-skill-bar/

  2. jborbj
    Member
    Posted 5 months ago #

    I've actually figured this out myself - you need to edit the custom.js in the "circle" folder to add the "pixflow_js_opt." for each additional attribute name, and then add these to the shortcode array in the default PHP file.

    The problem I'm having now (and was happening prior to my edits above) is that the circle pie chart doesn't show up at first, and only does so when the page is scrolled - anyone know what that is? Is there a JavaScript option to have it automatically shown? I've done some searching and some reasons may be that the height and width aren't displayed in html, but I cannot figure if this is being displayed or not, so I cannot trouble shoot that resolution option.

    Thoughts?

  3. SKTThemes
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,

    In order to work properly the pie chart js has to take some top height or scroll otherwise it doesn't load properly.

    Yes you are right about adding more parameters.

    Will have to test it and check on removing the height used and have a condition for users to either load it on refresh or on div load.

    Currently all are working as div load

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.