#16 dashboard data object

This commit is contained in:
nobohan 2021-09-23 09:41:55 +02:00
parent 45211bf4ce
commit dc42f4e5d5

View File

@ -1,14 +1,77 @@
export const dashboardData = { export const dashboardData = {
base: { base: {
area: 34.23, name: 'Wasseiges',
population: 3456, area: 24.48,
population: 2996,
}, },
landuse: { landuse: [
agricultural: { {
area: 1234, name: 'Terres arables',
area: 1694,
}, },
forested: { {
area: 23, name: 'Prairies',
area: 376,
},
{
name: 'Bois',
area: 25,
},
{
name: 'Surfaces bâties',
area: 167
},
{
name: 'Autres',
area: 186
} }
],
production: [
{
name: 'Froment',
area: 768.94,
},
{
name: 'Orge',
area: 61.78,
},
{
name: 'Betteraves',
area: 313.28,
},
{
name: 'Pommes de terre',
area: 274.12,
},
{
name: 'Cultures fourragères (maïs, prairies temporaires, ...)',
area: 108.70,
},
{
name: 'Vergers',
area: 33.06,
} }
]
}; };
interface landuse {
name: string,
area: number
}
interface production {
name: string,
area: number
}
export type dashboardDataType = {
base: {
name: string,
area: number,
population: number
},
landuse: landuse[],
production: production[],
// landuse: Record<string, landuse>
}