{"repo":"himynameisdave/svelte-frappe-charts","free":true,"listed":false,"github":"https://github.com/himynameisdave/svelte-frappe-charts","clone":"git clone https://github.com/himynameisdave/svelte-frappe-charts.git","description":"📈 Svelte bindings for frappe-charts.","language":"Svelte","stars":319,"topics":["svelte","frappe-charts","svelte-component","svg-charts","charting-library","charts"],"license":"MIT","category":"ui-components","readme_excerpt":"svelte-frappe-charts 📈 Svelte bindings for frappe-charts. --- Makes it easy to use frappe-charts in your Svelte project. Installation Note : Assumes you are using = svelte@4.0.0 . Usage Use the chart in your Svelte project with ease: The component API directly matches the the configuration of frappe-charts . Updating data There are two ways to update data in a chart: either in adding and removing individual points, or updating the existing data with an entirely new set of data points. Updating individual data points addDataPoint Add a data point to the chart, increasing the length of the dataset. More info on addDataPoint . removeDataPoint Remove a data point from the chart, reducing the length of the dataset. More info on removeDataPoint . Updating full data Update the entire data, including annotations, by passing the entire new data object to update. Chart navigation Chart navigation can be used when the isNavigable prop is set on the Chart component. Once it is set, the data-select event is propagated and can be handled in Svelte's standard ways (see the Events section of the tutorial and examples, and the API docs). Exporting charts You can easily export a chart (see Exporting) as an SVG by storing a reference to the component, and then calling exportChart on it: Contributing Issues and pull requests are greatly welcome! --- ✌️Created by Dave. Licenced under MIT.","default_branch":null,"files":null,"tree":[],"storefront":"/r/himynameisdave","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/himynameisdave/svelte-frappe-charts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}