grofit / aurelia-chart

A chart element for aurelia which is powered by chart js using html5 canvas.
MIT License
46 stars 25 forks source link

Plans to get the Example links working with the latest version? #62

Open naabers2 opened 9 months ago

naabers2 commented 9 months ago

We are using AU 1.3.1 and Highchart in our existing commercial product hoping to migrate from Highchart to Chart.js. The aurelia-chart project seems like a perfect fit for our replacement needs. Our app was built using all AU CLI defaults (Default ESNext app - A basic app with Babel and Webpack). Do you have a working example of Webpack with the latest aurelia-chart package (not TypeScript)? I clicked on the example links and got '404: Not Found'. Definitely appreciate any kind of help getting started with aurelia-chart. I have successfully built using AU 1.3.1 following your Webpack installation instructions, but need the next steps for this configuration (a basic POC example). Thanks so much. --John

MaximBalaganskiy commented 9 months ago

Webpack demo app https://github.com/grofit/aurelia-chart/tree/master/packages/demo

TS or not should not matter much

naabers2 commented 9 months ago

Thanks for the quick response! So it looks like make my main.js would be similar to main.ts w/the chart.js import, register, and then the 'aurelia-chart' plugin line. This is the main integration point if I understand that demo link correctly. Then the rest is just basic Aurelia. Sorry for not fully understanding TS.

naabers2 commented 9 months ago

Unfortunately, I was not able to get 'aurelia-chart' working with AU 1.3.1 today. This was creating a new Default ESNext app and adding to it. On the surface, it looks like it should be easy. I was very surprised the newly created app by AU did not build out-of-box (https://github.com/aurelia/cli/issues/1197), but the work around was easy for that. Rather than go through error discussions, if you are able to do an AU 1.3.1 hello 'aurelia-chart' example that would be of great help. Thanks again for your response and help.

MaximBalaganskiy commented 9 months ago

I think default CLI issues are out of this repository scope