Last active
June 19, 2019 20:32
-
-
Save jenil/e51e27da8c0556f64c2492c25a29394c to your computer and use it in GitHub Desktop.
charting-blog-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { addPropertyControls, Color, ControlType, Frame } from "framer"; | |
import * as React from "react"; | |
import Chart from "react-apexcharts"; | |
enum ChartTypes { | |
Line = "line", | |
Area = "area", | |
Bar = "bar", | |
Heatmap = "heatmap", | |
Radar = "radar" | |
} | |
export interface Props { | |
width?: number; | |
height?: number; | |
points: number; | |
seriesCount: number; | |
chartType: ChartTypes; | |
showToolbar: boolean; | |
showLegend: boolean; | |
showXaxis: boolean; | |
showYaxis: boolean; | |
isStacked: boolean; | |
isHorizontal: boolean; | |
colors: string[]; | |
palette?: string; | |
showStroke: boolean; | |
stroke: number; | |
strokeCurve: "smooth" | "straight" | "stepline"; | |
fillType: "solid" | "gradient" | "pattern"; | |
fillOpacity: number; | |
onDataPointSelection?: () => void; | |
onDataPointMouseEnter?: () => void; | |
onDataPointMouseLeave?: () => void; | |
} | |
export const Charting = function(props) { | |
return <h1>Charting</h1>; | |
}; | |
Charting.defaultProps = { | |
width: 800, | |
height: 600, | |
chartType: ChartTypes.Area, | |
isHorizontal: false, | |
points: 5, | |
seriesCount: 1, | |
fillType: "gradient", | |
fillOpacity: 0.8, | |
stroke: 5, | |
showStroke: true, | |
strokeCurve: "smooth", | |
palette: "palette1", | |
showToolbar: true, | |
showLegend: true, | |
showXaxis: true, | |
showYaxis: false, | |
isStacked: false, | |
colors: [] | |
} as Props; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment