liyuchang
Forum Replies Created
-
Hi there,
Thank you very much for your help. The codes work for me.
Also, please consider my original request, which able to output individual charts for a table with multiple sheets/data sets. I have made a request as suggested in Github. Thank you very much again.
hi there,
In the theme option, I pick Highcharts 4.x instead of the default chart.js, and in the type option, I pick the radar area. That’s all I did. The reason for that is the colour that Highcharts 4.x displays better fit with my page (light blue). I didn’t install a separate add-on plugin, I just pick the theme that m chart provides.
all I wish to do is to have a min =0 and max = 10 in my radar chart, as I have different datasets ranging from 0 to 10, and I need to create individual charts for each dataset. it’s better to have consistent look for all charts.
Hi there,
Thank you for your demo. However, after adding the codes
'yAxis' => array( 'min' => 0, 'max' => 10, ),to the file, it doesn’t really affect the chart. The type I’m using is the radar area. The min and max values are still the min and max values on my dataset, not 0 and 10. I have googled the solution, it seems that yAxis should be the one to change min and max values.
Also, I have to put the file under
/public_html/wp-content/plugins/m-chart/components/chartjs-themes/
in order to pick the highChart-MinAndMax theme, not
/public_html/wp-content/themes/rife-free/m-chart-highcharts-themes/
as suggested on your page, as nothing showed up when I put the file in the above directory. am I put the file in the right place??
many thanks
Hi there,
Thank you for the reply. I’m using rife-free theme, so I put the file in the below directory.
/public_html/wp-content/themes/rife-free/m-chart-highcharts-themes/highChart-MinAndMax.php
This is my codes in highChart-MinAndMax.php
<?php /** * Theme Name: highChart-MinAndMax */ return array( 'colors' => array( '#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1', ), 'yAxis' ( max (10), min (0), ), );However, I couldn’t find a theme call highChart-MinAndMax on the theme list when I select radar area chart. Do I miss something?
hi there,
thank you for the suggestion. I have tried to follow the instruction to custom Highcharts theme without success. This is what I did1. create m-chart-highcharts-themes directory under /wp-content/themes/twentytwentyone/
2. create a PHP theme file under the new directory with the following codes
return array( 'colors' => array( '#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#2b908f', '#f45b5b', '#91e8e1', ), 'yAxis' ( max (10), min (0), ), );After login again, I couldn’t see the theme I created. Did I miss something?
- This reply was modified 5 years, 1 month ago by liyuchang.
thx, another question is How to set the min and max value of the radar chart? Currently, the min and max values of the chart are the min and max values of the sheet. so each chart get different min and max values
hello,
Thanks for the reply. which means there is no way to have multiple sheets, and then output in both single chart of all data sets and multiple charts for each data set?
I need charts that display single data set for the page that describes its data set, and a chart that displays multiple data sets to compare the data on the home page.
- This reply was modified 5 years, 1 month ago by liyuchang.
hi there, don’t have lnglat column in my wp_wpgmza table. in the table I got
id map_id address description pic link icon lat lng anim title infoopen category approved retina type did sticky other_data latlngplease advise
Thank you for your reply. I can add markers, but can not edit or delete them. Below are the error messages from the console when I click delete button.
`wp-google-maps.min.js?ver=8.1.11:1 Uncaught Error
at Object.params.error.params.error (wp-google-maps.min.js?ver=8.1.11:1)
at c (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2)
at Object.fireWith [as rejectWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2)
at l (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2)
at XMLHttpRequest.<anonymous> (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2)
params.error.params.error @ wp-google-maps.min.js?ver=8.1.11:1
c @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
fireWith @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
l @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
(anonymous) @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
error (async)
send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
s.ajax.s.ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:5
WPGMZA.RestAPI.call @ wp-google-maps.min.js?ver=8.1.11:1
WPGMZA.FeaturePanel.onDeleteFeature @ wp-google-maps.min.js?ver=8.1.11:1
(anonymous) @ wp-google-maps.min.js?ver=8.1.11:1
dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
v.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2
load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-slider,jquery-ui-sortable&ver=5.7.1:2 DELETE https://heritageinsight.000webhostapp.com/wp-json/wpgmza/v1/markers/1 net::ERR_HTTP2_PROTOCOL_ERROR