charts icon indicating copy to clipboard operation
charts copied to clipboard

Pie Chart Problem

Open bobliboya opened this issue 3 years ago • 1 comments

Expected Behaviour

Actual Behaviour

The pie chart doesn't work so well... image

<div id="chart"></div>
    <script>
        new Chart("#chart", {
            // or DOM element
            data: {
                labels: [
                    "Person A",
                    "Person B",
                    "Person C",

                ],

                datasets: [{
                    name: "Some Data",
                    chartType: "pie",
                    values: [2000, 1000, 100,]
                }, ],


            },

            title: "My Awesome Chart",
            type: "pie", // or 'bar', 'line', 'pie', 'percentage'
            height: 300,
            colors: ["purple", "#ffa3ef", "light-blue"],
            axisOptions: {
                xAxisMode: "tick",
                xIsSeries: true
            },
            barOptions: {
                stacked: false,
                spaceRatio: 0.5
            },
            tooltipOptions: {
                formatTooltipX: (d) => (d + "").toUpperCase(),
                formatTooltipY: (d) => d + " pts"
            }
        });
    </script>

Steps to Reproduce:

NOTE: Add a GIF/Screenshot if required.

Frappé Charts version: Codepen / Codesandbox:

bobliboya avatar Apr 15 '21 12:04 bobliboya

the version 1.6.2 is ok.you can try it

xch1029 avatar Jun 21 '21 08:06 xch1029