madec-project / ezvis

A dashboard to visualize a synthesis on a structured corpus, using several charts (pies, histograms, ...)
https://ezvis.readthedocs.org/
17 stars 5 forks source link

Take groupPercent into account when labels is set in pie chart #54

Open parmentf opened 9 years ago

parmentf commented 9 years ago

In a pie, when labels and groupPercent are set, the legend does not take groupPercent into account (see image), and separates what is grouped on the chart.

Ex:

{
  "field": "Thematique",
  "type": "pie",
  "title": "Thématiques",
  "legend": {
    "position": "bottom"
  },
  "groupPercent": 5,
  "labels": {
    "Applied Sciences": "Appl Sci",
    "Fundamental and Applied Biological Sciences. Psychology": "Fund & Appli Biol Sci. Psychol",
    "Medical Sciences": "Med Sci",
    "Sciences and Techniques of General Use": "Sci & Tech Gen Use",
    "Social Sciences & Humanities": "Social Sci & Human"
  },
  "removeLabels": "true",
}

seriestv_thematique