Hello, i use Chart type pie. But not all label are visible
Can you me help please?
Thanks
Here is my HTML
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer",
{
title:{
text: "Where is label5 ?"
},
data: [
{
type: "pie",
legendText: "{indexLabel}",
dataPoints: [{"y":3.52941179,"label":"label1"},
{"y":4.70588255,"label":"label2"},
{"y":58.82353,"label":"label3"},
{"y":10.5882359,"label":"label4"},
{"y":4.70588255,"label":"label5"},// > 6.70588255 ok
{"y":17.6470585,"label":"label6"}
]
}
]
});
chart.render();
}
</script>
<script type="text/javascript" src="https://cdn.canvasjs.com/canvasjs.min.js"></script>
</head>
<body>
<div id="chartContainer" style="height: 300px; width: 100%;"></div>
</body>
</html>
-
This topic was modified 5 years, 4 months ago by Vlad.
-
This topic was modified 3 years, 2 months ago by Manoj Mohan.