You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use format_row() in my SlickReportViews to make my tables more readable (ie. adding commas between large numbers with django humanize intcomma and having the groupby fields refer to their name field within their respective models, etc.), but this prevents the chart from displaying the labels correctly (in the case of referring to the groupby fields' names instead of IDs) or picking up the data entirely (when formatting numbers with intcomma). Please advise (code below for reference.
The text was updated successfully, but these errors were encountered:
row_obj["cusip"] is now holing the model, instead of the .name for example.
Changing how the group is displayed should NOT affect the charts.
intcomma might be returning a string which might trip off the charts . (i believe especially pie)
I can suggest that you handle the number format in the front end (maybe via the datatable init)
I use format_row() in my SlickReportViews to make my tables more readable (ie. adding commas between large numbers with django humanize intcomma and having the groupby fields refer to their name field within their respective models, etc.), but this prevents the chart from displaying the labels correctly (in the case of referring to the groupby fields' names instead of IDs) or picking up the data entirely (when formatting numbers with intcomma). Please advise (code below for reference.
The text was updated successfully, but these errors were encountered: