Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.63k stars 1.48k forks source link

More options for customising Donut and Pie Charts #13554

Open mikesealey opened 4 months ago

mikesealey commented 4 months ago

Describe the feature request Currently, the only customisation available for colours on pie charts and donut charts is to choose 5 colours that will be assigned in a repeating pattern across all segments of the chart.

Consider adding a setting to allow a column in the table to be selected for the colour, assigning a colour for that specific row. Screenshot 2024-04-24 at 10 02 23

Please also consider adding a code-option to allow a user to set a colour based on specific values from the data provider

if ($("New Data Provider.Rows.number") > 50){
  return "red"
} else if ($("New Data Provider.Rows.number") > 25)) {
  return "orange"
} else {
  return "green"
}

or

if ($("New Data Provider.Rows.task") === "unassigned"){
  return "grey"
}

This feature request is a result of discussion 13534

linear[bot] commented 4 months ago

BUDI-8196 More options for customising Donut and Pie Charts