django-admin-charts icon indicating copy to clipboard operation
django-admin-charts copied to clipboard

'No charts available, please configure them' appear. What should I do?

Open tnajun opened this issue 1 year ago • 3 comments

'No charts available, please configure them' appear on the left of dashboard stats. What should I do to turn off the comment? Please note Jazzmin is installed.

スクリーンショット 2023-06-02 112000

tnajun avatar Jun 02 '23 02:06 tnajun

@tnajun, I'm absolutely brand new to this package / app. I am reading through it all to see it it will fit my project.

If you search the code, you can see that message most likely comes from chart_containers.html.

It uses a for and inside that for an {% empty %}. Which means, if the array is empty, it will display No charts available, please <a href="{% url 'admin:admin_tools_stats_dashboardstats_changelist' %}">configure them</a>.

See here for more details and an example. https://docs.djangoproject.com/en/4.2/ref/templates/builtins/#for-empty

Have you clicked on the link? If so, where does it take you and what options does it give you to "configure"?

That is where I would start. Then provide more detail if possible.

swills1 avatar Jul 04 '23 16:07 swills1

Is it possible, that this is might be solved by #72?

PetrDlouhy avatar Apr 12 '24 13:04 PetrDlouhy

Yes, it doesn't appears...

image

image

santiago1114 avatar Apr 13 '24 01:04 santiago1114

Closing this since it appears to be solved.

PetrDlouhy avatar Aug 02 '24 16:08 PetrDlouhy