Last active
August 2, 2020 17:05
-
-
Save eggei/b22ea71b9ea7f874d423dfe287ff9a9b to your computer and use it in GitHub Desktop.
Data Visualization Libraries Comparison - Data Types
This file contains 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
// https://codesandbox.io/s/white-snow-1u6ei | |
// D3 in React Chart Data | |
type D3Data = Array<{ | |
date: string, | |
point1: number, | |
point2: number, | |
}> | |
// Victory Chart Data | |
type VictoryData = Array<{ | |
x: string, | |
y: number, | |
}> | |
// Recharts Chart Data | |
type RechartsData = Array<{ | |
x: string, | |
y: number, | |
y1: number, | |
}> | |
// Nivo Chart Data | |
type NivoData = Array<{ | |
id: string // category id | |
data: Array<{ // category data | |
x: string, | |
y: number | |
}> | |
}> | |
// React-vis Data | |
type ReactVisData = Array< | |
Array<{ | |
x: number, // miliseconds for date | |
y: number | |
}> | |
> | |
// Viser Data | |
type ViserDate = Array<{ | |
type: string, // category | |
x: string, // date | |
y: number, | |
}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment