amcharts / amcharts3

JavaScript Charts V3
Other
395 stars 129 forks source link

Very Easy Problem #101

Open WebPro9369 opened 7 years ago

WebPro9369 commented 7 years ago

Hello, Everybody. I am new to AmCharts and its great features attract me to use it, so I am now working with it. I have a very curious problem. It is just a sample codes with JSFiddle, and I could not change url of dataLoader, so I can't use external custom data for this chart. When I change the url, there is an error that says: "Uncaught TypeError: Cannot read property 'time' of undefined at b.getClosestIndex (serial.js:formatted:1013)" These are my codes:

var chart = AmCharts.makeChart( "chartdiv", { "type": "stock", "theme": "light",

"dataSets": [ { "title": "MSFT", "fieldMappings": [ { "fromField": "Open", "toField": "open" }, { "fromField": "High", "toField": "high" }, { "fromField": "Low", "toField": "low" }, { "fromField": "Close", "toField": "close" }, { "fromField": "Volume", "toField": "volume" } ], "compared": false, "categoryField": "Date",

"dataLoader": {
  "url": "https://github.com/WebPro9369/smart-on-fhir-tutorial/blob/master/MSFT.csv", // This is a custom url of external data
  "format": "csv",
  "showCurtain": true,
  "showErrors": true,
  "async": true,
  "reverse": true,
  "delimiter": ",",
  "useColumnNames": true
}

}

I know this is a very simple and basic matter, so hope to hear from everybody who has great experience with AmCharts. Thank you. Horea

martynasma commented 7 years ago

Hi there,

Sorry for the late reply. GitHub is not being monitored by amCharts support staff. You can contact@amcharts.com for a faster reply.

Back to your question. Can you provide what the output of your MSFT.csv file is?