Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi

    I’ve added the old version, for you to use.

    Can I ask though, how are you using the canvasheight and canvaswidth properties ?

    those set the actual canvas width / height and will affect the draw resolution. I’m then using CSS and JS to set the width to 100% of the container, measure that width and make the height equal. if you’re sizing the chart you should be able to use the standard width and height properties now.

    Let me know if there is some kind of bug, but I’d like to know what you’re doing so that I can understand your use case.

    Cheers.

    Paul

    Thread Starter elpresidento

    (@elpresidento)

    tag 0.5.2 is empty

    Thread Starter elpresidento

    (@elpresidento)

    Thanks for fix tag, now is 0.5.2 available.

    About canvas. I use this shortcodes (script generated content)

    [wp_charts title=”turist” type=”line” datasets=2883,2883,2884,2889,2892,2894,2895 labels=07.10,09.10,11.10,14.10,16.10,18.10,21.10 width=”100%” colors=”#69D2E7″ margin=”0px 20px 0px 0px” canvasheight=240 canvaswidth=800 ]

    (links removed)

    sorted….

    Hey

    Are you wanting to use the canvasheight and canvaswidth to create charts that do not have a equal height and width?

    the only way I can think that this will work while keeping them responsive is to create a proportions property that will allow the script to calculate that width and height appropriately on resize.

    if this is your sue case let me know and I can probably add this feature tonight, though i’ll need some testing as I haven’t tried this at all.

    Regareds

    Paul

    ah, didn’t see your post above, thats what I thought, so in order to keep the charts responsive in all browsers, , we’ll need to supply a proportions property so that the height can be calculated by the JS. (for example you’d need to put in the proportion value of 3.33 – I’ll have this sorted in 0.6.8 – should do it tonight or tomorrow.)

    also, 0.5.2 is available for now, and I’ll have a workable solution for you in the next minor update as soon as possible.

    Paul van Zyl

    (@pushplaybang)

    Hi there

    so I’ve added a ‘relativewidth’ property to the shortcode which I’d love you to test out, it defaults to 1 for square, where if you’re setting you chart to 200px high and 600px wide your ratio would be 3 or for your example above 3.33. Give it a spin and let me know how that works out for you.

    Regards

    Paul

    Thread Starter elpresidento

    (@elpresidento)

    Relativewidth property does not work. I tested values from 2 to 4 and chart is still square.

    Paul van Zyl

    (@pushplaybang)

    That’s very odd, will test it as doon. As I get moment today, maybe I screwed up with the svn pushing, will let you know soonest.

    Hi elpresidento

    relative width is definitely now working, please see this example shortcode, its necessary to set height, width, canvasheight, canvaswidth and the relativewidth properties for the shortcode.

    [wp_charts title="linechart" type="line" align="alignleft" margin="5px 20px" datasets="40,43,61,50,20,40,20 next 33,15,40,32,38,57,46" labels="one,two,three,four,five,six,seven" scaleoverride="true" scalesteps="8" scalestepwidth="10" scalestartvalue="0" scaleFontSize="16" canvaswidth="920px" canvasheight="460px" relativewidth="2" width="920px" height="460px"]

    Thanks for the patience

    Kind Regards

    Paul

    seems somethings missing there Alberg15

    Thread Starter elpresidento

    (@elpresidento)

    Relativewidth property works fine now.
    Good job. Thaks very much Paul

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘canvas does not work’ is closed to new replies.