Regarding Any Charts

0
How to get zoom-in in any charts? ..and how to show labels below the charts.
asked
2 answers
0

Hello,

 

Try to add these in Configurations option tab :

 

image.png

answered
0

in javascript snippet ,use this script  for labels in format you change based on x axis or y axis 

dataLabels: { 

                  enabled: true, format: '{point.name}: {point.y}',

                    style: {                       

                                    fontSize: '16px', 

                                   fontWeight: 'bold',

                                    color: '#000'         

                                   }

                           }            

for zoom in try in this style add two buttons 

<button onclick="setZoom(0.75)">Zoom Out (75%)</button><button onclick="setZoom(1.5)">Zoom In (150%)</button>

 

var currentZoom = 1;

function setZoom(scale) {  currentZoom = scale;  document.getElementById('your container name').style.transform = `scale(${scale})`;} 

answered