All Projects → developit → precharts

developit / precharts

Licence: MIT license
Just Recharts pre-aliased for Preact.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to precharts

esri-preact-pwa
An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact
Stars: ✭ 13 (-50%)
Mutual labels:  preact
pretty-checkbox-react
A tiny react/preact wrapper around pretty-checkbox
Stars: ✭ 35 (+34.62%)
Mutual labels:  preact
relaks
Asynchrounous React component
Stars: ✭ 49 (+88.46%)
Mutual labels:  preact
revite
Revolt client built with Preact.
Stars: ✭ 606 (+2230.77%)
Mutual labels:  preact
anghamify
Anghami Downloader | Download Anghami songs with full meta-tags.
Stars: ✭ 22 (-15.38%)
Mutual labels:  preact
playkit-js-ui
UI Application Framework for the PlayKit JS Player
Stars: ✭ 25 (-3.85%)
Mutual labels:  preact
WorkerStore
Small React state container running inside WebWorker
Stars: ✭ 32 (+23.08%)
Mutual labels:  preact
preact-coffee
Starter template for preact coffee webpack
Stars: ✭ 13 (-50%)
Mutual labels:  preact
preact-mdc
material design components for preact using material-components-web sass styles (for live demo click the link below)
Stars: ✭ 23 (-11.54%)
Mutual labels:  preact
robinjs-website
Alexa like assistant in 40 lines of code
Stars: ✭ 31 (+19.23%)
Mutual labels:  preact
parcel-examples
Parcel project examples for React, Vue, preact, VanillaJS and jQuery.
Stars: ✭ 26 (+0%)
Mutual labels:  preact
macos-preact
macos-preact.now.sh
Stars: ✭ 1,019 (+3819.23%)
Mutual labels:  preact
universal-progressive-todos
A Todo list with universal JavaScript & Progressive Enhancement
Stars: ✭ 30 (+15.38%)
Mutual labels:  preact
extjs-reactjs-examples
Code examples for ExtJS to React transition
Stars: ✭ 48 (+84.62%)
Mutual labels:  recharts
preact-token-input
🔖 A text field that tokenizes input, for things like tags.
Stars: ✭ 57 (+119.23%)
Mutual labels:  preact
snap-state
State management in a snap 👌
Stars: ✭ 23 (-11.54%)
Mutual labels:  preact
apollobank
A full stack GraphQL banking application using React, Node & TypeScript.
Stars: ✭ 203 (+680.77%)
Mutual labels:  recharts
preact-motion
A fork of React-Motion to be used with Preact
Stars: ✭ 28 (+7.69%)
Mutual labels:  preact
htmdx
HTMDX: Lightweight runtime for mdx-like markdown
Stars: ✭ 82 (+215.38%)
Mutual labels:  preact
coderplex
(Old) Frontend for coderplex.org
Stars: ✭ 40 (+53.85%)
Mutual labels:  preact

Precharts

NPM travis-ci

Wraps Recharts up for Preact, without using preact-compat.

Think of this as a version of Precharts that is pre-aliased to use preact in place of React.

See Webpackbin Example:

demo


Usage Example

import { h, render } from 'preact';
import { ComposedChart, Area, Line, XAxis, CartesianGrid, Tooltip } from 'precharts';

const DATA = [
	{ name: 'A', a: 4000, b: 2400 },
	{ name: 'B', a: 3000, b: 1398 },
	{ name: 'C', a: 2000, b: 9800 },
	{ name: 'D', a: 2780, b: 3908 },
	{ name: 'E', a: 1890, b: 4800 },
	{ name: 'F', a: 2390, b: 3800 },
	{ name: 'G', a: 3490, b: 4300 }
];

render((
	<ComposedChart width={500} height={200} data={DATA}>
		<XAxis dataKey="name" orientation="bottom" height={20} />
		<CartesianGrid strokeDasharray="3 3" />
		<Line dataKey="a" stroke="red" />
		<Area dataKey="b" fill="green" opacity={.3} />
		<Tooltip />
	</ComposedChart>
), document.body);

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].