2.1.0 • Published 2 years ago

react-echarts-json v2.1.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

react-echarts-json

No-invasive debugging based on Echarts

💻 Live

Live

✨ Features

  • Easy to learn and use
  • No-invasive
  • Dependent on updates
  • Log view monitoring
  • Visual debugging echarts options
  • Support multi-chart
  • Can customize the combination views

📦 Install

$ npm install --save react-echarts-json
# or
$ yarn add react-echarts-json

🔨 Usage

Use the container that displays the view

import { ViewContainer } from 'react-echarts-json'
import 'react-echarts-json/dist/style.css'

// view
// EchartDefaultView --- Default view component
;<ViewContainer renderable={true}></ViewContainer>

You need to inject messages in the components using echarts(jsx or tsx)

import { InjectView } from 'react-echarts-json'
;<InjectView
	chart={chart}
	option={option}
	id="demo"
	name="demo"
	renderFlag={true}
/>

👨‍💻👩🏻‍💻 Custom view

You can customize your view through the components and hooks provided

import {
	useMedia,
	useDarkMode,
	useEcharts,
	useInjection,
	useChartSelect,
	useChartEventEmitter,
	useCreateEditor,
	ViewContainer,
	Editor,
	LogView,
	InjectView,
	ReactEchartsJson,
} from 'react-echarts-json'

ViewContainer

Display container

Components

  • Editor --- code Editor Copomponent
  • LogView --- echart log
  • ReactEchartsJson --- echart option json view
  • InjectView --- inject chart

Hooks

  • useDarkMode --- dark theme
  • useMedia --- media
  • useEcharts --- for fast create demo
  • useChartSelect --- select active chart
  • useCreateEditor --- createEditor and run code # If you don t use the Editor component then you need to use this hook
  • useChartEventEmitter --- chart eventBus

Can you use hook and component to customize the components you want.The EchartDefaultView component is made up of them.

🖼 View

2.0.0

2 years ago

2.1.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.6

2 years ago

1.2.8

2 years ago

1.4.5

2 years ago

1.2.7

2 years ago

1.4.4

2 years ago

1.2.6

2 years ago

1.4.3

2 years ago

1.2.5

2 years ago

1.4.2

2 years ago

1.2.4

2 years ago

1.4.1

2 years ago

1.2.3

2 years ago

1.4.0

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.2.9

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.0.8

2 years ago

1.1.6

2 years ago

1.0.7

2 years ago

1.1.5

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.1.2

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago