diff --git a/README.md b/README.md index a3c570e..378cede 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ This is a Rust WASM bindings for generating charts using the [ApexCharts](https://apexcharts.com/) JavaScript library. The library provides components for creating charts with the `yew` framework. ApexCharts is a modern open source charting library that helps developers to create beautiful and interactive visualizations for web pages. +## Browsers support + +| [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Edge](http://godban.github.io/browsers-support-badges/)
Edge | [IE](http://godban.github.io/browsers-support-badges/)
IE11 | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| 31+ ✔ | 35+ ✔ | 6+ ✔ | Edge ✔ | [(IE11)](#using-it-with-ie11) ✔ | + + + ## Usage ```toml [dependencies] @@ -11,11 +19,11 @@ apexcharts-rs = {version="0.1", features=["yew-component"]} ``` and then in your code: -```ignorelang +```rust use yew::prelude::*; use apexcharts_rs::prelude::{ApexChartComponent, ChartType, ChartSeries, SeriesData}; -#[function_component(ApexChart)] +#[function_component] fn MyApp() -> Html { // This is the data to chart. The data is a vector of `ChartSeries` // which contains the name of the series, the data points, color, type