Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Amir m.

    (@aidev)

    سلام
    ممنون از شما
    مشکل دو تا بود
    1> وردپرس رو کلا فارسی می کرد حتی صفحه ادمین
    (من به عنوان ادمین ترجیح می دم صفحه ام انگلیسی باشه / عادت کردم )
    2> تمام اسمها رو ترجمه می کرد حتی اسم پلاگاین ها رو و این خیلی عجیب بود / فکر کنم از ترجعه گوگل استفاده کردین / به هرحال اسم های خاص رو نباید ترجعه کنه

    من به همون قبلی برگشتم اون ورژن 1 بنظرم بهتره
    نکته آخر اینکه اگه بنویسین و اسنبشات بزارین واسه تغییراتی که انجام دادین خیلی بهتر میشه

    دست مریزاد

    Thread Starter Amir m.

    (@aidev)

    Hello,

    I am still waiting for you reply, please tell me where in file level I can change the values.

    Thanks

    Thread Starter Amir m.

    (@aidev)

    Could 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.txt

    Thread Starter Amir m.

    (@aidev)

    Ok, 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

    Thread Starter Amir m.

    (@aidev)

    Indeed 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.js

    2- 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”
    }
    };

    Thread Starter Amir m.

    (@aidev)

    Well, 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 ?

    Thread Starter Amir m.

    (@aidev)

    It 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.

Viewing 7 replies - 1 through 7 (of 7 total)