AlexanderHorn
Forum Replies Created
-
We still have the issue at https://logical-invest.com/
AMP on Pages is off.
Mobile redirection off.
Auto Add AMP in Menu URL is off.Still links to non amp pages redirect to /amp and create loop.
Is this a known issue?
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyHi,
a custom parameter would be great!! Something like above [amcharts id=”pie-1″ data-file=”data1.csv”] or just [amcharts id=”pie-1″ para=”whatever”] which can be fetched by jscript..
I’m currently using a <script> var filename = “BRS”;</script> before the shortcode, and then fetch the var in the chart code. Works fine if there is only one chart on page, but not with more than one….
was trying a workaround using the %Chart% placeholder like this in post <script> var filename%Chart% = “BRS”;</script>, but also not working..
Any other idea on how to pass ‘custom parameter’ through jscript var if there are several charts on one page/post?
Forum: Plugins
In reply to: [amCharts: Charts and Maps] Post-ID / Post-Meta to chart js?Checked the standard WP template and by default it pulls the _post var which holds the post ID in the header section; like you showed above. So no need for custom php, but this goes straightinto the amcharts jscript to pull the data:
var file = _post;
…
chartData = AmCharts.loadJSON(‘/wp-content/csvrepository/’ + file + ‘.json’); or php from MySQL with some mapping post : product.Maybe you could do a more extensive example on how to create dynamic charts with this, guess a typical application for generating charts by each product, portfolio, etc… I’m just a starter, but feel there is juice in there.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] Post-ID / Post-Meta to chart js?Whow, that was fast.. Let me try and I feed-back later.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] External csv into WordPress – %Chart%_datasets?will open new thread for this.
Forum: Plugins
In reply to: [amCharts: Charts and Maps] External csv into WordPress – %Chart%_datasets?Hi, let me abuse for two quick other questions:
1) In the above stock chart example, how could I pass the WP post ID to the chart as ticker symbol? Example: I’m using the slug //?avada_portfolio=gmr, so how could I use the ‘gmr’ post slug to pull the “gmr.csv”‘ in this part “+indices[x]+’_events.csv’);”?
2) Suppose I have a RiskGauge chart in a WP post like above, and want to determine the arrow value (gaugeChart.arrows[0].setValue(example 3,4 or 5);) before I render the chart with [amcharts id=”Risk”]
Guess the underlying question is how to make the charts interact with post-type data like IDs or other vars in the post….
I’m evaluating to buy the premium license.. btw ??
Thanks,
AlexForum: Plugins
In reply to: [amCharts: Charts and Maps] External csv into WordPress – %Chart%_datasets?Thanks, that worked.. need to go back to my “coding for dummies” course. Great tool, your amCharts!!