Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chartwerk namespace #12

Open
jonyrock opened this issue May 31, 2020 · 0 comments
Open

Chartwerk namespace #12

jonyrock opened this issue May 31, 2020 · 0 comments

Comments

@jonyrock
Copy link
Contributor

from /demo.html:

<head>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
    <meta content="utf-8" http-equiv="encoding">

    <script src="./dist/index.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="chart" style="width: 500px; height: 500px;"></div>

    <script type="text/javascript">
      new ChartwerkLineChart(document.getElementById('chart'), [{ datapoints: [[100, 1590590148], [200, 1590591148]] }])
    </script>
  </body>

I think it would be to do following: new Chartwerk.LineChart()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant