### Install DSFR Chart via NPM Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Install the DSFR Chart module using npm. This command adds the necessary package to your project's dependencies, allowing you to import and use its components. ```bash npm install @gouvfr/dsfr-chart ``` -------------------------------- ### DSFR Bar Chart Component Examples Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Examples demonstrating the DSFR Bar Chart component for vertical, horizontal, and stacked bar visualizations. Supports custom palettes, tooltips, and highlighting specific bars. ```html ``` -------------------------------- ### DSFR Pie Chart Component Examples Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Examples of using the DSFR Pie Chart component to display proportional data. Supports both donut (hollow) and filled pie styles, with options for custom palettes and tooltips. ```html ``` -------------------------------- ### DSFR Bar-Line Chart Component Example Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt An example of the DSFR Bar-Line Chart component, which combines bar and line series on a single visualization with independent y-axes. It allows for detailed comparison of different data types. ```html ``` -------------------------------- ### DSFR Line Chart Component Examples Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Examples of using the DSFR Line Chart component to visualize trends and time-series data. Supports single or multiple series, custom palettes, units, and axis limits. ```html ``` -------------------------------- ### Apply Default Single Color to Line Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Demonstrates how to use the default single color palette for a line chart. This is a basic usage for simple data representation. ```html ``` -------------------------------- ### Apply Categorical Palette for Pie Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Illustrates the use of the categorical color palette for a pie chart, suitable for up to 8 distinct categories. Each slice will receive a different color from the palette. ```html ``` -------------------------------- ### Apply Neutral Palette for Highlighting in Bar Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Shows how to apply the neutral color palette to a bar chart, often used for highlighting specific data points. The 'highlight-index' attribute is used to specify which bar to emphasize. ```html ``` -------------------------------- ### Apply Sequential Descending Palette to Bar Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Shows how to apply the sequential descending color palette to a bar chart, with colors progressing from dark to light. This is also suitable for ordered data. ```html ``` -------------------------------- ### Import Specific DSFR Chart Components Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Import individual DSFR Chart components, such as LineChart and BarChart, along with their respective CSS files. This approach is useful for optimizing bundle size by only including the components you need. ```javascript import '@gouvfr/dsfr-chart/LineChart'; import '@gouvfr/dsfr-chart/LineChart.css'; import '@gouvfr/dsfr-chart/BarChart'; import '@gouvfr/dsfr-chart/BarChart.css'; ``` -------------------------------- ### Apply Sequential Ascending Palette to Bar Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Demonstrates using the sequential ascending color palette for a bar chart, where colors progress from light to dark. This is ideal for data that has a natural order or progression. ```html ``` -------------------------------- ### Static File Import for DSFR Chart Components (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Include DSFR Chart components in an HTML page by referencing their JavaScript and CSS files directly. This method is suitable for projects not using a module bundler like Webpack or Vite. ```html ``` -------------------------------- ### DataBox Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A container component for charts that includes built-in features for metadata, tooltips, modals, and accessibility controls. It enhances chart presentation and user interaction. ```html ``` ```html ``` ```html ``` -------------------------------- ### Import All DSFR Chart Components Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Import all available DSFR Chart components and their associated CSS styles into your Vue.js application. This is a convenient way to make all charting functionalities immediately available. ```javascript import '@gouvfr/dsfr-chart'; import '@gouvfr/dsfr-chart/css'; ``` -------------------------------- ### Map Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A geographic visualization component for displaying French departments or regions with color-coded values. Supports both department-level and region-level views with customizable palettes. ```html ``` ```html ``` -------------------------------- ### Radar Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A radar (spider) chart component for comparing multivariate data across multiple dimensions. It supports multi-series and two-series comparisons with customizable tooltips. ```html ``` ```html ``` -------------------------------- ### Scatter Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A scatter plot component to visualize relationships between two variables. It supports basic plots, plots with connecting lines, and multiple series, with options for palette selection. ```html ``` ```html ``` ```html ``` -------------------------------- ### Table Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A table chart component that presents data in a tabular format, serving as an accessible alternative to graphical charts. It displays data with defined axes and series names. ```html ``` -------------------------------- ### Apply Divergent Descending Palette to Map Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Demonstrates applying the divergent descending color palette (red to yellow to green) to a map chart. This is effective for data where deviations from a norm are important, such as performance scores. ```html ``` -------------------------------- ### Gauge Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A circular gauge component that visually represents progress towards a target value. It can be used for simple progress display or percentage tracking. ```html ``` ```html ``` -------------------------------- ### Apply Divergent Ascending Palette to Map Chart Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt Illustrates the use of the divergent ascending color palette (green to yellow to red) for a map chart. This palette is useful for data that has a central point or threshold, like risk levels. ```html ``` -------------------------------- ### Regional Map Chart Component (HTML) Source: https://context7.com/gouvernementfr/dsfr-chart/llms.txt A specialized map component providing a detailed view of departments within a specific French region. It allows focused visualization and data display for a particular region. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.