react-chartjs

WebJar for react-chartjs

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

react-chartjs
Последняя версия

Последняя версия

0.8.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-chartjs
WebJar for react-chartjs
Ссылка на сайт

Ссылка на сайт

http://webjars.org

Скачать react-chartjs

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-chartjs/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-chartjs</artifactId>
    <version>0.8.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-chartjs/
implementation 'org.webjars.npm:react-chartjs:0.8.0'
// https://jarcasting.com/artifacts/org.webjars.npm/react-chartjs/
implementation ("org.webjars.npm:react-chartjs:0.8.0")
'org.webjars.npm:react-chartjs:jar:0.8.0'
<dependency org="org.webjars.npm" name="react-chartjs" rev="0.8.0">
  <artifact name="react-chartjs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-chartjs', version='0.8.0')
)
libraryDependencies += "org.webjars.npm" % "react-chartjs" % "0.8.0"
[org.webjars.npm/react-chartjs "0.8.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

react-chartjs

rich interactive react charting components using chart.js including

  • Line chart
  • Bar chart
  • Radar chart
  • Polar area chart
  • Pie chart
  • Doughnut chart

view chart examples

Installation

This is a CommonJS component only (to be used with something like Webpack or Browserify)

npm install --save react-chartjs

You must also include chart.js and React as dependencies.

npm install --save chart.js@^1.1.1 react react-dom

Example Usage

var LineChart = require("react-chartjs").Line;

var MyComponent = React.createClass({
  render: function() {
    return <LineChart data={chartData} options={chartOptions} width="600" height="250"/>
  }
});
  • data represents the chart data (see chart.js for details)
  • options represents the chart options (see chart.js for details)
  • all other parameters will be passed through to the canvas element
  • if data passed into the component changes, points will animate between values using chart.js' .update(). If you want the chart destroyed and redrawn on every change, pass in redraw as a prop. For example <LineChart data={this.state.chartData} redraw />

Chart References

The canvas element can be retrieved using getCanvas and the chartjs object can be retrieved using getChart.

org.webjars.npm

React Community

React website and its localizations

Версии библиотеки

Версия
0.8.0
0.7.3
0.6.0