Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

graphic

a flutter data visualization library based on grammar of graphics.

usage

installing visualization library 

pub.dev

basic example

graphic.chart(
  data: [
    { 'genre': 'sports', 'sold': 275 },
    { 'genre': 'strategy', 'sold': 115 },
    { 'genre': 'action', 'sold': 120 },
    { 'genre': 'shooter', 'sold': 350 },
    { 'genre': 'other', 'sold': 150 },
  ],
  scales: {
    'genre': graphic.catscale(
      accessor: (map) => map['genre'] as string,
    ),
    'sold': graphic.linearscale(
      accessor: (map) => map['sold'] as num,
      nice: true,
    )
  },
  geoms: [graphic.intervalgeom(
    position: graphic.positionattr(field: 'genre*sold'),
  )],
  axes: {
    'genre': graphic.defaults.horizontalaxis,
    'sold': graphic.defaults.verticalaxis,
  },
)

document

if you have ever used data visualization libs based on grammar of graphics, such as antv , ggplot2, you can be quite familiar with these concepts.

the document has not been written yet, but by referring to the example app , i believe you can be smart enough to build your charts 🙂


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.