FS.FluentUI.Charts 1.0.2

dotnet add package FS.FluentUI.Charts --version 1.0.2
                    
NuGet\Install-Package FS.FluentUI.Charts -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FS.FluentUI.Charts" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FS.FluentUI.Charts" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="FS.FluentUI.Charts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FS.FluentUI.Charts --version 1.0.2
                    
#r "nuget: FS.FluentUI.Charts, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FS.FluentUI.Charts@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FS.FluentUI.Charts&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=FS.FluentUI.Charts&version=1.0.2
                    
Install as a Cake Tool

FS.FluentUI.Charts

FluentUI V9 Charts (React) made for F# in the style of Feliz

NuGet version (FS.FluentUI.Charts) NuGet Downloads

<a href="https://www.buymeacoffee.com/andrewsydsh" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" alt="Buy Me A Coffee" height="50" width="200"></a>

Please check all Charts docs for further component usage and properties

Please see all F# component examples in the FS.FluentUI Wiki

An example of a Charting component implementation:

<img width="1042" height="387" alt="image" src="https://github.com/user-attachments/assets/3148fbf9-1a60-4581-bb16-a0235ba1d64a" />

open FS.FluentUI.Charts

type ChartPoints = {
    legend: string
    data: float
    color: string
}

/// You can `.` into specific properties
let firstChartPoints = [
    [ vsChartDataPoint.legend "MetaData1"; vsChartDataPoint.data 2; vsChartDataPoint.color (Fui.getColorFromToken Fui.dataVizPalette.color1) ]
    [ vsChartDataPoint.legend "MetaData2"; vsChartDataPoint.data 0.5; vsChartDataPoint.color (Fui.getColorFromToken Fui.dataVizPalette.color2) ]
    [ vsChartDataPoint.legend "MetaData3"; vsChartDataPoint.data 0; vsChartDataPoint.color (Fui.getColorFromToken Fui.dataVizPalette.color6) ]
]

// You can use anonymous types that include specific fields
let secondChartPoints = [
    {| legend = "MetaData1"; data = 30; color = Fui.getColorFromToken Fui.dataVizPalette.color1 |}
    {| legend = "MetaData2"; data = 3; color = Fui.getColorFromToken Fui.dataVizPalette.color2 |}
    {| legend = "MetaData3"; data = 40; color = Fui.getColorFromToken Fui.dataVizPalette.color6 |}
]

// Or you can use custom data types
let thirdChartPoints = [
    { legend = "MetaData1"; data = 10; color = Fui.getColorFromToken Fui.dataVizPalette.color1 }
    { legend = "MetaData2"; data = 60; color = Fui.getColorFromToken Fui.dataVizPalette.color2 }
    { legend = "MetaData3"; data = 30; color = Fui.getColorFromToken Fui.dataVizPalette.color6 }
]

let verticalStackedBarChartDataList = [
    [ verticalStackedChart.chartData firstChartPoints; verticalStackedChart.xAxisPoint "Simple Data" ]
    [ verticalStackedChart.chartData secondChartPoints; verticalStackedChart.xAxisPoint "Long text will disaply all text" ]
    [ verticalStackedChart.chartData thirdChartPoints; verticalStackedChart.xAxisPoint "Data" ]
]

Fui.verticalStackedBarChart [
    verticalStackedBarChart.data verticalStackedBarChartDataList
    verticalStackedBarChart.chartTitle "Vertical stacked bar chart axis tooltip example"
    verticalStackedBarChart.height 400
    verticalStackedBarChart.width 600
    verticalStackedBarChart.showYAxisLablesTooltip true
    verticalStackedBarChart.wrapXAxisLables true
    verticalStackedBarChart.barWidth.auto
    verticalStackedBarChart.maxBarWidth 50
    verticalStackedBarChart.xAxisInnerPadding 0.25
    verticalStackedBarChart.enableGradient true
    verticalStackedBarChart.roundCorners true
    verticalStackedBarChart.barGapMax 0.5
]

Installation

Current NPM dependencies:

Primary dependency:
  • @fluentui/react-charts

Install into your Client.fsproj project using Femto (recommended)

cd ./{path to Client}

# when using femto as a global CLI tool
femto install FS.FluentUI.Charts

# when using femto as a local CLI tool
dotnet femto install FS.FluentUI.Charts

This will install the nuget package and afterwards automatically installs the required npm packages used by this binding.

Femto will detect whether you are using paket and will install the package using paket into the dependency group of the project

You can install the library manually if you want by first installing the nuget package

cd ./{path to your project}
dotnet add package FS.FluentUI.Charts
npm install @fluentui/react-charts
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 259 12/17/2025
1.0.1 180 10/28/2025
1.0.0-beta02 115 10/17/2025
1.0.0-beta01 115 10/17/2025

- Update @fluentui/react-charts to 9.3.8
           - Add CartesianChart annotation properties
           - Add xMinValue prop to CartesianChart