Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
vor 2 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <div align="center">
  2. <img src="https://github.com/xhiveframework/design/blob/master/logos/logo-2019/xhiveframework-charts-logo.png" height="128">
  3. <a href="https://xhiveframework.github.io/charts">
  4. <h2>XhiveFramework Charts</h2>
  5. </a>
  6. <p align="center">
  7. <p>GitHub-inspired modern, intuitive and responsive charts with zero dependencies</p>
  8. <a href="https://xhiveframework.com/charts">
  9. <b>Explore Demos » </b>
  10. </a>
  11. <a href="https://codesandbox.io/s/xhiveframework-charts-demo-viqud">
  12. <b> Edit at CodeSandbox »</b>
  13. </a>
  14. <a href="https://xhiveframework.com/charts/docs">
  15. <b>Documentation » </b>
  16. </a>
  17. </p>
  18. </div>
  19. <p align="center">
  20. <a href="https://bundlephobia.com/result?p=xhiveframework-charts">
  21. <img src="https://img.shields.io/bundlephobia/minzip/xhiveframework-charts">
  22. </a>
  23. </p>
  24. <p align="center">
  25. <a href="https://xhiveframework.github.io/charts">
  26. <img src=".github/example.gif">
  27. </a>
  28. </p>
  29. ### Contents
  30. * [Installation](#installation)
  31. * [Usage](#usage)
  32. * [Contribute](https://xhiveframework.com/charts/docs/contributing)
  33. * [License](#license)
  34. #### Installation
  35. ##### Via NPM
  36. Install via [`npm`](https://www.npmjs.com/get-npm):
  37. ```sh
  38. $ npm install xhiveframework-charts
  39. ```
  40. and include in your project:
  41. ```js
  42. import { Chart } from "xhiveframework-charts"
  43. ```
  44. Or include following for es-modules(eg:vuejs):
  45. ```js
  46. import { Chart } from 'xhiveframework-charts/dist/xhiveframework-charts.esm.js'
  47. // import css
  48. import 'xhiveframework-charts/dist/xhiveframework-charts.min.css'
  49. ```
  50. ##### or include within your HTML
  51. ```html
  52. <script src="https://cdn.jsdelivr.net/npm/xhiveframework-charts@1.6.1/dist/xhiveframework-charts.min.umd.js"></script>
  53. <!-- or -->
  54. <script src="https://unpkg.com/xhiveframework-charts@1.6.1/dist/xhiveframework-charts.min.umd.js"></script>
  55. ```
  56. #### Usage
  57. ```js
  58. const data = {
  59. labels: ["12am-3am", "3am-6pm", "6am-9am", "9am-12am",
  60. "12pm-3pm", "3pm-6pm", "6pm-9pm", "9am-12am"
  61. ],
  62. datasets: [
  63. {
  64. name: "Some Data", chartType: "bar",
  65. values: [25, 40, 30, 35, 8, 52, 17, -4]
  66. },
  67. {
  68. name: "Another Set", chartType: "line",
  69. values: [25, 50, -10, 15, 18, 32, 27, 14]
  70. }
  71. ]
  72. }
  73. const chart = new xhiveframework.Chart("#chart", { // or a DOM element,
  74. // new Chart() in case of ES6 module with above usage
  75. title: "My Awesome Chart",
  76. data: data,
  77. type: 'axis-mixed', // or 'bar', 'line', 'scatter', 'pie', 'percentage'
  78. height: 250,
  79. colors: ['#7cd6fd', '#743ee2']
  80. })
  81. ```
  82. Or for es-modules (replace `new xhiveframework.Chart()` with `new Chart()`):
  83. ```diff
  84. - const chart = new xhiveframework.Chart("#chart", {
  85. + const chart = new Chart("#chart", { // or a DOM element,
  86. // new Chart() in case of ES6 module with above usage
  87. title: "My Awesome Chart",
  88. data: data,
  89. type: 'axis-mixed', // or 'bar', 'line', 'scatter', 'pie', 'percentage'
  90. height: 250,
  91. colors: ['#7cd6fd', '#743ee2']
  92. })
  93. ```
  94. If you want to contribute:
  95. 1. Clone this repo.
  96. 2. `cd` into project directory
  97. 3. `npm install`
  98. 4. `npm run dev`
  99. #### License
  100. This repository has been released under the [MIT License](LICENSE)
  101. ------------------