- This topic has 9 replies, 2 voices, and was last updated 5 years, 8 months ago by
Support. This post has been viewed 2150 times
-
AuthorPosts
-
October 31, 2020 at 9:25 am #10034968
patcaulfield
ParticipantHi,
I try to use the charts in the owl-carousel slider
but not showing.
please let me know how to fix this error.Thanks
November 3, 2020 at 12:59 am #10034981Support
KeymasterHello, thanks for your purchase.
First change the HTML of carousel to:
<div id="chartCarousel" class="owl-carousel owl-theme nav-style-1 mb-0"...................
Give unique ID to chart inside the carousel:
<div class="chart chart-md flotBasic2" id="flotBasic2"></div>
Add in (js/custom.js):
$('#chartCarousel').on('initialized.owl.carousel', function(){ if( $('.flotBasic2').get(0) ) { var flot = $('.floatBasic2').data('plot'); if( flot ) { flot.destroy(); } var plot = $.plot('.flotBasic2', flotBasicData, { series: { lines: { show: true, fill: true, lineWidth: 1, fillColor: { colors: [{ opacity: 0.45 }, { opacity: 0.45 }] } }, points: { show: true }, shadowSize: 0 }, grid: { hoverable: true, clickable: true, borderColor: 'rgba(0,0,0,0.1)', borderWidth: 1, labelMargin: 15, backgroundColor: 'transparent' }, yaxis: { min: 0, max: 200, color: 'rgba(0,0,0,0.1)' }, xaxis: { color: 'rgba(0,0,0,0.1)' }, tooltip: true, tooltipOpts: { content: '%s: Value of %x is %y', shifts: { x: -60, y: 25 }, defaultTheme: false } }); } });We hope this helps!
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
November 3, 2020 at 9:03 am #10034996patcaulfield
ParticipantThanks for replying…
I think it shows but now another issue happened.
carousel and tab button have same error.
check, pleasehttp://designrhythm.co.kr/porto/index-ask.html
http://designrhythm.co.kr/porto/index-ask2.htmlThank you
November 4, 2020 at 1:14 am #10035004Support
KeymasterHello,
Regarding carousel:
The problem is you are not initializing themorrisStacket2andChartistLineInterpolationSmoothingchart on initialization of carousel.Please try with this JS at (js/custom.js):
https://pastebin.com/raw/nSLRL2jtRegarding tabs:
Is needed empty and initialize the charts on tab change. Try adding this below add (js/custom.js):
https://pastebin.com/raw/qUJVZwmMWe hope this helps!
Kind Regards,
Rodrigo.
If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
November 4, 2020 at 1:00 pm #10035010patcaulfield
ParticipantHello,
In the tab menu, the chart is working. 🙂
http://designrhythm.co.kr/porto/index-ask2.htmlbut, the carousel slider still has a problem.
when the page loads, some chart is showing but others are not showing or showing but can not load the data in the carousel.
http://designrhythm.co.kr/porto/index-ask.htmlThank you for your support.
November 4, 2020 at 1:45 pm #10035011patcaulfield
ParticipantHello,
I replace the owl-carousel
<div id=”chartCarousel” class=”owl-carousel owl-theme nav-style-1 mb-0″ data-plugin-options=”{‘responsive’: {‘576’: {‘items’: 1}, ‘768’: {‘items’: 2}, ‘992’: {‘items’: 3}, ‘1200’: {‘items’: 4}}, ‘margin’: 25, ‘loop’: true, ‘nav’: true, ‘dots’: true, ‘autoplay’: true, ‘autoplayTimeout’: 3000}”>
to
<div class=”owl-carousel owl-theme show-nav-title” data-plugin-options=”{‘items’: 6, ‘margin’: 10, ‘loop’: false, ‘nav’: true, ‘dots’: false}”>
then, the chart is showing.
I’ll check again and if I have a more question, I ask againThank you 🙂
November 4, 2020 at 3:13 pm #10035012patcaulfield
ParticipantHello,
The charts are showing but only the problem is when the carousel change the option ‘loop’: false to ‘loop’: true
then some chart data is not working.please, check this error, please.
http://designrhythm.co.kr/porto/index-ask.html
Thank you.
November 4, 2020 at 11:16 pm #10035019Support
KeymasterHello,
Great that almost all issues are resolved!
Sorry I forgot to mention in my last reply for you that carousel with
loopenabled will not works.Instead, my suggestion for you is enable the
rewindoption of carousel:<div id="chartCarousel" class="owl-carousel owl-theme nav-style-1 mb-0" data-plugin-options="{'responsive': {'576': {'items': 1}, '768': {'items': 2}, '992': {'items': 3}, '1200': {'items': 4}}, 'margin': 25, 'loop': false, 'nav': false, 'dots': false, 'autoplay': true, 'autoplayTimeout': 3000, 'rewind': true}">* Note
'rewind': true.We hope this helps!
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
November 5, 2020 at 4:01 pm #10035024patcaulfield
ParticipantHello,
Wow, great.
Thank you for your help.See you at the next error time. 🙂
November 6, 2020 at 12:35 am #10035027Support
KeymasterHello,
Great! 🙂
If you need further assistance feel free to contact us.
Kind Regards,
Rodrigo.
If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.