dual-chart

Combine bar and line series into a single Vue-chrts chart using axis and category configs.

427|25|Updated Mar 16, 2025
One-click install
npx skills add https://github.com/dennisadriaans/vue-chrts --skill dual-chart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dual-chart
Source: https://github.com/dennisadriaans/vue-chrts/tree/main/.claude/skills/dual-chart
Command: npx skills add https://github.com/dennisadriaans/vue-chrts --skill dual-chart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DualChart enables combining bar and line charts to compare two related metrics in a single visualization, helping users quickly spot correlations and divergences.

Core Features & Use Cases

  • Bar + Line integration: Merge bar series and line series in one chart for side-by-side comparison.
  • Config-driven: Define barYAxis, lineYAxis, barCategories, and lineCategories to map data keys to visuals.
  • Use Case: Analyze monthly revenue (bars) alongside profit margin (line) to identify trends and opportunities.

Quick Start

Install the vue-chrts library in your project and import the DualChart component. Provide a dataset with at least two bar metrics and one line metric. Bind barCategories, barYAxis, lineCategories, and lineYAxis to the DualChart to render the combined visualization.

Frequently Asked Questions about dual-chart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I combine a bar chart and a line chart in a single visualization in Vue?

To combine a bar chart and line chart in Vue, you need a dual-axis chart component that maps bar metrics and line metrics to separate Y-axes. This lets you plot related variables like revenue and profit margin together to reveal correlations over time. The DualChart Skill requires the Vue-chrts library and explicit configuration of barYAxis, lineYAxis, barCategories, and lineCategories to render correctly.

What is the best way to visualize revenue versus profit margin on one dashboard chart?

The best way to visualize revenue versus profit margin on one dashboard chart is using a combined bar and line visualization. This approach plots revenue as bars and profit margin as a line, allowing you to compare two related metrics side-by-side and quickly spot trends, correlations, or divergences over time.

Do I need the vue-chrts library to render a combined bar and line chart?

Yes, you need the vue-chrts library installed in your project to render the DualChart component. After importing the component, you must provide a dataset with at least two bar metrics and one line metric, then bind the barCategories, barYAxis, lineCategories, and lineYAxis properties to map the data correctly.

Can I display multiple bar series and line series in one Vue dashboard component?

Yes, you can display multiple bar and line series in a single Vue dashboard component. By configuring the barYAxis and lineYAxis alongside their respective categories, you can map multiple related metrics from your dataset into one unified visualization to compare divergent data points.

Why is my combined bar and line chart not rendering correctly in Vue?

Your combined bar and line chart may not render correctly if you have not explicitly configured the barYAxis, lineYAxis, barCategories, and lineCategories properties. The component requires these four configurations to accurately map your dataset keys to the bar and line visuals.

When should I use a dual-axis chart instead of separate charts for my data visualization?

You should use a dual-axis chart instead of separate charts when you need to compare two related metrics with different scales, such as costs versus margins. Combining them into a single visualization makes it easier to identify relationships, correlations, and divergences over time than viewing isolated charts.