text #https://chartkick.com/react
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text #https://chartkick.com/react相关的知识,希望对你有一定的参考价值。
INSTALLATION :
Run
yarn add react-chartkick chart.js
And add
import ReactChartkick, { LineChart, PieChart } from 'react-chartkick'
import Chart from 'chart.js'
ReactChartkick.addAdapter(Chart)
=====================================
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import ReactChartkick, { LineChart, PieChart } from 'react-chartkick'
import Chart from 'chart.js'
ReactChartkick.addAdapter(Chart)
class App extends Component {
render() {
return (
<div className="App">
<LineChart data={{"2017-05-13": 2, "2017-05-14": 5, ...}} />
</div>
);
}
}
export default App;
以上是关于text #https://chartkick.com/react的主要内容,如果未能解决你的问题,请参考以下文章
text Https重定向
text #https://chartkick.com/react
text Chttpнаhttps
text 使用.htaccess强制HTTPS
text 强制重定向到https
text 重定向到https:// www