how would this compare with js native libraries like ChartJs or Apex Charts #225
-
hi, Is there any benefits to using this svelte native library. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The main difference is in the interface and what Layer Cake allows the user to do. From the guide:
Looking at those two libraries you mentioned, it seems like you provide data and a JSON specification and you get a full chart with you line/bar/etc. as well as axes and tooltips. This is different from Layer Cake's design goals. The goals of Layer Cake are to give you a common set of scales and SVG, HTML and canvas components and let you populate them with renderers of your choosing. This lets users create fully customizable graphics. The website includes examples of different kinds of renderers – viewable in the Component Gallery – but it does not come with any renderers built-in. If you want to make custom graphics with fully control over design and interactivity, then Layer Cake is aligned with that. |
Beta Was this translation helpful? Give feedback.
The main difference is in the interface and what Layer Cake allows the user to do. From the guide:
Looking at those two libraries you mentioned, it seems like you provide data and a JSON specification and you get a full chart with you line/bar/etc. as well as axes and tooltips. This is different from Layer Cake's design goals. The goals of Layer Cake are to give you a common set of scales and SVG, HTML and canvas components and let you populate them with renderers of your choosing. This lets users create fully customizable graphics.
The website includes examples of d…