martynasma
Forum Replies Created
-
Forum: Plugins
In reply to: [amCharts: Charts and Maps] add phpTurns out the “funkiness” was actually a problem with my test environment.
The PHP code insert works fine. Do you get any errors while trying to use it? PHP or JavaScript?
Forum: Plugins
In reply to: [amCharts: Charts and Maps] Does anyone have problem of slowing down?it’s great that the issue is gone.
However, I doubt it was caused by a PHP version.
In any case, please keep an eye out if the issue resurfaces. If it does, try disabling WP plugins one by one, including amCharts, to see if it has any effect on the site performance.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] Does anyone have problem of slowing down?Do you mean even for the pages that do not display charts?
Try disabling amCharts plugin and see if this speeds your blog up.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to implement permanentYou can achieve that with label text.
Here’s a perfect example:
Forum: Plugins
In reply to: [amCharts: Charts and Maps] Changing shortcode IDHi there.
What would be your suggestion? How do you want to “customize” the shortcode?
Your feed is appreciated.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] editing css of my map (amCharts)Hello,
I suggest you take a look at the introductory tutorials on our website. It should address most of the questions you may have:
Forum: Plugins
In reply to: [amCharts: Charts and Maps] add phpYeah, it’s seems there’s something funky going on when used on the same page with both shortcode and php function.
We’ll let you know when this is fixed.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] add phpIf you need to insert a chart into body of a post or page you need to use the shortcode.
PHP approach is needed if you are building a WP plugin or a theme and want to include the chart directly in the code.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to manage with the demos chart and the randomThe charts do not support loading the data from Excel files, I’m afraid.
You will need to export the data to CSV, then build a CSV parser that converts your data into JSON structure which can be used by the chart.
Here’s a good article:
https://www.amcharts.com/tutorials/loading-external-data/
It contains the code to parse CSV data.
I hope it helps.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to do tohave the y graph not starting a 0 ?The chart automatically calculates the starting point based on the value range in data.
However, you can override it using ValueAxis’ setting “minimum”:
https://docs.amcharts.com/3/javascriptcharts/ValueAxis#minimum
I.e.:
... valueAxes: [ { minimum: 50 } ], ...
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to manage with the demos chart and the randomStock Charts are designed to display thousands of data points. Having a stock chart example with just a few data points would skew the purpose of the real-life applications.
Similarly, including a thousand data point code inline would make the example code unusable to edit.
However, for regular charts there are plenty of examples that use non-random data:
https://www.amcharts.com/demos/date-based-data/
https://www.amcharts.com/demos/duration-on-value-axis/
https://www.amcharts.com/demos/smoothed-line-chart/
https://www.amcharts.com/demos/trend-lines/
https://www.amcharts.com/demos/line-with-changing-color/Just to name a few.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] add phpTo insert the same form via PHP you would need to call this:
<?php amcharts_insert( 5232 ); ?>
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to input simple datas in a chart?You also need to update your graph settings to use correct field in data.
You currently have set valueField set to “visits”. There’s no such field in your data. Try replacing that line with:
"valueField": "value"
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to input simple datas in a chart?The problem is that you have the “dataProvider” property set twice.
Delete the following line:
"dataProvider": chartData,
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to input simple datas in a chart?The data you posted looks OK.
If the chart is not showing up it must be something else.
Can you post your whole chart code?