Amir m.
Forum Replies Created
-
Forum: Plugins
In reply to: [پارسی دیت – Parsi Date] تنظیم راست چین چپ چین صفحه ادمینسلام
ممنون از شما
مشکل دو تا بود
1> وردپرس رو کلا فارسی می کرد حتی صفحه ادمین
(من به عنوان ادمین ترجیح می دم صفحه ام انگلیسی باشه / عادت کردم )
2> تمام اسمها رو ترجمه می کرد حتی اسم پلاگاین ها رو و این خیلی عجیب بود / فکر کنم از ترجعه گوگل استفاده کردین / به هرحال اسم های خاص رو نباید ترجعه کنهمن به همون قبلی برگشتم اون ورژن 1 بنظرم بهتره
نکته آخر اینکه اگه بنویسین و اسنبشات بزارین واسه تغییراتی که انجام دادین خیلی بهتر میشهدست مریزاد
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyHello,
I am still waiting for you reply, please tell me where in file level I can change the values.
Thanks
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyCould you tell me where are the files of the javascript(data) saved so that I can change it ?
In other words, from where (which file) do you load the following values ?var amchart1 = AmCharts.makeChart(“amchart1”, {
“type”: “funnel”,
“theme”: “none”,
“dataProvider”: [{
“title”: “Website visits”,
“value”: 300
}, {
“title”: “Downloads”,
“value”: 123
}, {
“title”: “Requested prices”,
“value”: 98
}, {
“title”: “Contaced”,-rw-r–r–. 1 nginx nginx 1.5K Nov 25 13:41 amcharts.php
drwxr-xr-x. 2 nginx nginx 4.0K Nov 27 16:52 defaults/
drwxr-xr-x. 2 nginx nginx 4.0K Nov 25 13:41 images/
drwxr-xr-x. 2 nginx nginx 4.0K Nov 27 17:09 includes/
drwxr-xr-x. 2 nginx nginx 4.0K Nov 25 13:41 langs/
drwxr-xr-x. 5 nginx nginx 4.0K Nov 27 17:26 lib/
-rw-r–r–. 1 nginx nginx 4.4K Nov 25 13:41 readme.txtForum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyOk, I hope you add it ASAP.
One more question, Is there anyway to duplicate the current Chart and copy as new one ?
Where the files of the Chart saved ? If I can access it I may can manipulate it by my scripts.
Thanks
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyIndeed both maybe.
Please correct me If i am wrong.
As I said I have the CSV file uploaded to domain.1- in resource part I should use
http://www.amcharts.com/lib/3/amcharts.js
http://www.amcharts.com/lib/3/pie.js2- in Html part
<div id=”%CHART%” style=”width: 100%; height: 300px;”></div>
3 – in Java script part
function loadCSV(file)
function parseCSV(data)
loadCSV(“data.txt”)var %CHART% = AmCharts.makeChart(“%CHART%”, {
“type”: “pie”,
“theme”: “none”,
“dataProvider”:
-get some data from above-“exportConfig”:{
menuItems: [{
icon: ‘/lib/3/images/export.png’,
format: ‘png’
}]
}Is the above correct ?
OR there is a way that I can use SHORTCODE as you said and do like this[amcharts id=”pie-1″ data-file=”/wp-content/uploads/2014/11/abc.csv” data-animation=”1″]
var chartInstanceData = {
“pie-1”: {
“data-file”: “/wp-content/uploads/2014/11/abc.csv”,
“data-animation”: “1”
}
};Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyWell, I don’t get where should I add this.
Here is the JavaScript of the default chart.
var %CHART% = AmCharts.makeChart(“%CHART%”, {
“type”: “pie”,
“theme”: “none”,
“dataProvider”: [
{
“country”: “Lithuania”,
“litres”: 501.9
},
{
“country”: “Czech Republic”,
“litres”: 301.9
}, {
“country”: “Ireland”,
“litres”: 201.1
}, {
“country”: “Germany”,
“litres”: 165.8
}, {
“country”: “Australia”,
“litres”: 139.9
}, {
“country”: “Austria”,
“litres”: 128.3
}, {
“country”: “UK”,
“litres”: 99
}, {
“country”: “Belgium”,
“litres”: 60
}, {
“country”: “The Netherlands”,
“litres”: 50
}],
“valueField”: “litres”,
“titleField”: “country”,
“exportConfig”:{
menuItems: [{
icon: ‘/lib/3/images/export.png’,
format: ‘png’
}]
}
});What shall I replace so that I will load data from my CSV instead of these values ?
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How to create charts dynamicallyIt didn’t work or maybe I could not address it correctly.
It still load the old data in the JS file.I tried the followings:
[amcharts id=”pie-1″ data-file=”/wp-content/uploads/2014/11/abc.csv”]
[amcharts id=”pie-1″ data-file=”http://domain.com/wp-content/uploads/2014/11/abc.csv”%5D
Could you give me an example about how to use it and how should be file structure o the csv, does it require to be different or ?!
Thank you, looking forward your reply.