Skip to main content

G2Plot chart types

G2Plot charts enable you to select from a variety of chart types to suit your needs. The Type parameter specifies the type of chart to be rendered:

Available Chart types include:

  • Line - for continuous data trends
  • Area - ideal for visualizing cumulative values
  • Column and Bar - for category comparisons
  • Pie and Donut - representing parts of a whole
  • Dualaxes - for layered, multi-metric displays
  • Rose - useful for categorical distribution
  • Scatter - showing relationships between variables
  • Stock - tracking stock performance over time
  • Mix - combining multiple chart types for complex data

By choosing an appropriate chart type, you can effectively highlight patterns, comparisons, or distributions, enabling viewers to gain clear insights from the data.

Examples

Line

Shows trends over time or continuous data, ideal for tracking changes.

<rapid-g2plot-chart 
type="line"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Area

Highlights cumulative data over time, useful for displaying totals or progress.

<rapid-g2plot-chart 
type="area"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Column

Compares values across categories with vertical bars, making group differences clear.

<rapid-g2plot-chart 
type="column"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Bar

Similar to column charts but uses horizontal bars, great for categorical comparisons.

<rapid-g2plot-chart 
type="bar"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Pie

Visualizes parts of a whole, effective for showing percentage distributions.

<rapid-g2plot-chart 
type="pie"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Donut

Similar to pie charts, with a hollow center, suitable for data composition.

<rapid-g2plot-chart 
type="donut"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Dualaxes

Combines two data sets with different scales on a single chart, ideal for multi-metric comparisons

<rapid-g2plot-chart 
type="dualaxes"
:config=${() => chartConfiguration}
:data=${() => [chartData, chartData]}
></rapid-g2plot-chart>

Rose

Displays categorical data with radial segments, highlighting distribution across categories.

<rapid-g2plot-chart 
type="rose"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Scatter

Plots individual data points to show relationships or correlations between variables.

<rapid-g2plot-chart 
type="scatter"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Stock

Used for financial data, showing stock price changes over time with high, low, and close values.

<rapid-g2plot-chart 
type="stock"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

Mix

Combines multiple chart types for complex data representation, allowing deeper insights.

<rapid-g2plot-chart 
type="mix"
:config=${() => chartConfiguration}
:data=${() => chartData}
></rapid-g2plot-chart>

info

After you have looked at the basics here, you can find more details in our API Docs