Code

Discussion on GraphUp - jQuery Plugin

Discussion on GraphUp - jQuery Plugin

By
Cart 270 sales

GeertDD supports this item

Supported

This author's response time can be up to 10 business days.

27 comments found.

Hello, Before I buy, I’d like to know how the plugin deals with negative numbers. Ideally, I’d like negative bars to go the opposite way to positive bars. Is this possible?

Thanks, Andrew

Sorry, this is not a built-in feature. You may be able to create your own painters to accomplish it but you’ll need some javascript/CSS skills.

Ok, my problem was that I didn’t think I could override the inline styles the javascript generates. But I’ve fount out that it can be done with !important.

In case it can be useful for somebody: use a class or an id, and then apply a style to the div using !important: table td.green div.bar{ background: #80AD20 !important; }

Good to hear you figured it out. Good job!

The thing is, I have 5 bars and I need each of them to be one specific color: one is red, another blue, green, yellow and orange. If I assign those colors to the colorMap it creates a gradient and assigns a color from the gradient, not the ones I specified. If two bars have an indentical number, they will be the same color.

And if I assign a css class it will affect all of the bars, not each one individually, won’t it?

I hope I made myself clear. Excuse my English, not my mother tongue. Thanks

Okay, I understand. Maybe you could give the table cells five unique IDs or classes and then use CSS to select each individual bar that way. Alternatively, a selector like :nth-child may come in handy too.

Hi, I would like to know if there’s a way to assign a specific color to a bar, instead of the colors being picked up from a gradient.

Thanks, great work.

You mean to use a single color instead of a gradient? That’s possible. Just assign one color to the colorMap setting. All bars will be that color.

You can further tweak the look of the bars via CSS . The classBar setting allows you to define a class to each bar for easy styling.

With which version of Jquery does this bullshit work? It doesnt seem to work with old version of Jquery, and therefore wont’ work with Drupal.

Please, mind your tone, sir. It should work with jQuery 1.4+, as stated in the description.

How difficult to integrate into wordpress?

Should be easy. Load jQuery and the plugin, then it is just a matter of applying it to a data table. Have a look at the installation instructions before you buy if in doubt. Installing it on a WordPress site should not be more difficult/easy than another site. Let me know if you have questions.

This is cool stuff! Bookmarked :)

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey