frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.94k stars 718 forks source link

Presence of zero values deforms pie charts #173

Closed massimo-cassandro closed 5 years ago

massimo-cassandro commented 6 years ago

Actual Behaviour

schermata 2018-05-08 alle 14 09 55

Steps to Reproduce:

{
    "height": 350,
    "title": "Fatturati: confronto Network (apr 2018)",
    "type": "pie",
    "colors": ["#7ED321", "#007bff", "#fc0", "#FDA5EE", "#9c6d1e", "#c7b6f7"],
    "data": {
        "labels": ["Blunet", "Bluvacanze", "Cisalpina Tours", "Primarete Viaggi e Vacanze", "Travelbuy", "Uniposte"],
        "datasets": [{
            "name": "apr 2018",
            "values": [5270381, 0, 0, 3249212, 1033141, 377]
        }]
    }
}

Frappé Charts version: 1.1.0 (iife)

eyewritecode commented 6 years ago

I'm having the same issue but with small values!! 😞

screen shot 2018-05-17 at 12 37 54
kedar9444 commented 5 years ago

@eyewritecode : its not due to the small values. the graph behaves unpredictable when you have values subtotal less that 100.

scmmishra commented 5 years ago

Fixed: https://github.com/frappe/charts/pull/181