Forum Replies Created by FernandoHigashi

Viewing 1 post (of 1 total)
  • Eu resolvi este problema com a propriedade transform: scale() do CSS.

    O conceito é criar o gráfico dentro de uma DIV com overflow: visible, e o CanvasJS 3x maior. Depois aplicar o transform: scale(0.3) para encaixar novamente o Canvas.JS.
    Por algum motivo o Canvas.JS não permite o transform diretamente.

    <div class=”graphContainer”>
    <div id=”graphHere”></div>
    </div>

    <style>
    .graphContainer{ position: relative; width: 500px; height: 200px; transform: scale(0.33); transform-origin: top left; overflow: visible; }
    .graphContainer #graphHere { position: absolute; width: 1500px; height: 600px; top: 0px; left: 0px; }
    </style>

Viewing 1 post (of 1 total)