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" |
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
export function makeSeries(seriesCount: number, points: number) { | |
return Array(seriesCount) | |
.fill({ | |
data: [], | |
}) | |
.map(s => { | |
return { | |
data: Array(points) | |
.fill(1) | |
.map((d, i) => [ |
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"; | |
export const Charting = function(props) { | |
return <h1>Charting</h1>; | |
}; |
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" |
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
const https = require("https"); | |
exports.handler = (req, ctx, callback) => { | |
const event = JSON.parse(req.body); | |
console.log("Event:", event); | |
let response = { | |
statusCode: 200, | |
body: "ok" | |
}; |