Topic: Charts disappear thymeleaf
Jannik Franssen free asked 4 years ago
Hello everyone, *I tried to do a switch case for generating charts*
the normal horizontal charts are functionable, the pie charts disappear - btw the code doesnt functions without a servlet because of thymeleaf code. without this thymeleaf switch case the pie charts also didnt work......
https://mdbootstrap.com/snippets/jquery/jannik_franssen/2018030?action=forum_snippet
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.16.0
- Device: -
- Browser: Google Chrome, eclipse default
- OS: -
- Provided sample code: No
- Provided link: Yes
Jannik Franssen free commented 4 years ago
i fixed it....i had to split them up in two script sections...thank you :)
Jannik Franssen free commented 4 years ago
in my snippet they are below the footer or not?
Mateusz Łubianka staff commented 4 years ago
Hi @Jannik Franssen,
i created a snippet with pie chart and it works. https://mdbootstrap.com/snippets/jquery/mateusz-lubianka/2019216 in your example I cant see js code.
Best,
Mateusz Łubianka staff commented 4 years ago
Great :) One of the charts was not present in html and you tried to initialize it in js. If you remove code of var myChart2 - you will see Pie chart.
Best,