I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Responsive chart canvas

dashed-slug.net Forums Exchange extension support Responsive chart canvas

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9943
    LeinAd
    Participant

    .. is there a way? after i googled a while, it seems that i have to go deep in code

    #9950
    alexg
    Keymaster

    Hello,

    Are you referring to the chart? (wallets_exchange_chart] shortcode)

    The chart is redrawn on window resize. From wallets-exchange.js:

    
    // resize all charts whenever window resizes
    $( window ).resize( function( e ) {
    	$( '.dashed-slug-wallets-exchange.chart .chart-container').each(
    		function( i, el ) {
    			drawChart( el );
    		}
    	);
    } );
    

    Not sure if this is what you mean?

    #9951
    LeinAd
    Participant

    i mean i meant that i made the canvas field at the moment with a resolution of 1920 x 1080 for example with: [wallets_exchange_chart template=”static” market=”BTC_LTC” width=”950″ height=”500″] “pretty”. But with smaller resolutions it looks “strange”.

    #9959
    alexg
    Keymaster

    Have you tried simply [wallets_exchange_chart] with no arguments? In my tests the chart adapts to the available width.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.