VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=chart——VisActor/VTable tutorial documents!!!###!!!!!!###!!!description=In the previous article, we introduced how to display minigraphs in cells. Minigraphs can do simple trend analysis and style configuration. If you want to apply the more powerful chart VChart to tables, please take a look at this tutorial.!!!###!!!
Cell display chart
In the previous article, we introduced how to display minigraphs in cells. Minigraphs can do simple trend analysis and style configuration. If you want to apply the more powerful chart VChart to tables, please take a look at this tutorial.
Inject Chart Components
Before using it, you need to inject the used chart library components:
import VChart from '@visactor/vchart';
VTable.register.chartModule('vchart', VChart);
About why you need to configure a name to register VChart'vchart'? We have plans to access other chart libraries.
Related configuration
Table display typecellTypeSet tochartUsed to generate charts.
cellType: 'chart'//chart chart type
chartModule: 'vchart'//vchart is the name configured during registration
There are three fields in our records: persionid, areaChart, scatterChart, where areaChart and scatterChart are the two data that need to be provided for chart use.
example
We use the above data to display different chart effects with different specs:
Through the above introduction and examples, we can quickly create and configure the table display type sparkline miniature in VTable. Although only line graphs are currently supported, with subsequent development, the functions and types of minigraphs will become more and more perfect, providing more convenient and practical functions for data lake visualization.