chartit / django-chartit

A Django app to plot charts and pivot charts directly from the models. Uses HighCharts and jQuery JavaScript libraries to render the charts on the webpage.
http://django-chartit.mrsenko.com/
Other
492 stars 164 forks source link

column chart data is being sorted by y-axis values #63

Closed danshea closed 5 years ago

danshea commented 5 years ago

Hello,

I'm trying to figure out why my QuerySet is being re-ordered when plotted via chartit. The data set is filtered() and then order_by() is called. I've verified the output of those calls is as expected.

However, when I examine the output produced after the django templating creates the source HTML, the series is re-ordered in the HTML file.

I tried to reproduce it using highcharts without chartit in between, but it seems that chartit is re-ordering the QuerySet?

Is this something that can be disabled during the Chart call, or is this the expected behavior of the function?

Sorry if this is a silly question, but I can't find any documentation referencing this behavior in chartit or highcharts.

Regards, Dan

danshea commented 5 years ago

I ended up switching out chartit to just calling highcharts directly. So I'm going to close this issue.

Regards, Dan