Home Forums Chart Support How Can I make CanvasJS Charts the Correct Width When Printing? Reply To: How Can I make CanvasJS Charts the Correct Width When Printing?

#44036

@willflor,

You can change the width / height or both as per your requirements only while printing using media queries. Please take a look at the code-snippet below.

@media print {        
  .canvasjs-chart-canvas {
    width: 300px !important;
  }
}

__
Rohith Nagaral
Team CanvasJS