Skip to content

Add some documentation about chaarts usage #109

Description

@nhoizey

Even if it's not yet usable as an installable library (#27), it currently requires a bit of digging to understand how to build graphs like on the demo site.

For example, for a bar chart:

  • load https://github.com/ffoodd/chaarts/blob/main/dist/chaarts.css , not just the CSS from the example
  • it looks like part (or all?) of the example styles are already inside chaarts.css
  • add a container element with class chaarts-container, <table class="chaarts bar"…> is not enough
  • add data-theme="dark" to the html element to get the dark theme (at least if there is no prefers-color-scheme management on the site?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions