GetDKAN / dkan

DKAN Open Data Portal
https://dkan.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
366 stars 170 forks source link

Charts Keeps "Forgetting" the X-Format or Y-Format You've Chosen #2096

Closed stefaniefgray closed 7 years ago

stefaniefgray commented 7 years ago

This is an older issue that I've run into on multiple DKAN sites - it seemed to have been fixed at one point, but I can't find the original ticket.

When you're creating a new Chart in DKAN, if you choose a specific way to format the X or Y axis values (known as X-format and Y-format), the chart should change how the values are presented.

For example, if I had a population chart where the Y-axis read "1,000; 5,000; 10,000" and I wanted it to be shown as "1K; 5K; 10K" instead, then I would choose the Y-axis format called "100K."

In turn, the chart will change to reflect this -- see screenshot:

screenshot 2017-09-05 15 45 07

The bug on certain DKAN sites is that it keeps "forgetting" the setting you've chosen.

When creating the Population of California chart on one of these sites, if you click "Save," it'll display the chart with "100K, 500K, 1M..." as expected.

However, if you click "Edit" and change something else (i.e. the chart's colors or margins) and then click Save again, the Chart reverts back to the default X- or Y-format setting.

See below:

screenshot 2017-09-05 15 48 46

For this issue to be fixed, Charts must be able to keep track of which options you've chosen.

jvitello commented 7 years ago

I tried reproducing this, and I think the issue is that the 100,000 formatting doesn't work. You can save a chart with different formats back and forth and they stick, so there doesn't seem to be an issue with retaining the configurations.

This is an old bug from 1.12.x. I created a new ticket with the details. Closing this one: https://github.com/NuCivic/dkan/issues/2098