Skip to content

Extras

Chart

Bit.BlazorUI.ExtrasGraphPlot

BitChart renders native SVG computed in C# - no canvas or JavaScript engine - so it works in prerendering and static SSR. A Chart.js-like API (BitChartType + BitChartData + BitChartOptions, or one BitChartConfig) draws line, bar, area, pie, doughnut, polar area, radar, scatter, bubble, mixed and sparkline charts, styled by the bit theme and public --bit-Chart-* CSS variables, with keyboard and screen-reader support and SVG/PNG/CSV export.

Localization

Culture-aware numbers, currency ticks, localized dates, non-Latin labels and right-to-left charts.

Culture-aware numbers

Options.Culture formats every number the chart prints: ticks, tooltips, data labels and the CSV export. It defaults to the invariant culture; set CultureInfo.CurrentCulture to follow the user.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Revenue12500,519300,251410022800,75182502540020900

Currency ticks

Ticks.Format takes any .NET numeric format string, applied with the chart's culture ("C0" for currency). Prefix and Suffix simply wrap the number.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Line chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Revenue12500.519300.251410022800.75182502540020900

Localized dates

A time axis names months and days in Options.Culture too; TimeFormat overrides the label text entirely.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Line chart with 1 data series.
Series X Y
Price 46023 98,7
Price 46024 107,1
Price 46025 111,3
Price 46026 103,4
Price 46027 101,7
Price 46028 106,2
Price 46029 98,1
Price 46030 108,1
Price 46031 116
Price 46032 124,1
Price 46033 124,1
Price 46034 133,7
Price 46035 133,6
Price 46036 126,9
Price 46037 135,5
Price 46038 134,5
Price 46039 141,6
Price 46040 139,3
Price 46041 147,7
Price 46042 139,2
Price 46043 145,1
Price 46044 147,4
Price 46045 141,9
Price 46046 142,5
Price 46047 141,2
Price 46048 132,8
Price 46049 142,8
Price 46050 134,3
Price 46051 134,9
Price 46052 140,3
Price 46053 146,7
Price 46054 143,7
Price 46055 136,9
Price 46056 131,2
Price 46057 123,9
Price 46058 116,3
Price 46059 123,8
Price 46060 117,9
Price 46061 119,7
Price 46062 129,3
Price 46063 137,9
Price 46064 142,1
Price 46065 135,6
Price 46066 127,9
Price 46067 130,9
Price 46068 141,1
Price 46069 146,4
Price 46070 148,8
Price 46071 156,4
Price 46072 150,3
Price 46073 145,8
Price 46074 154,3
Price 46075 159,4
Price 46076 168,7
Price 46077 171,6
Price 46078 179
Price 46079 183,9
Price 46080 178,6
Price 46081 182,9
Price 46082 180,6

Non-Latin labels

Layout measures every tick label, legend entry and axis title before placing the plot, counting CJK, Kana and Hangul glyphs as a full em wide, so non-Latin labels get the room they need instead of colliding.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
Series東京都大阪府愛知県福岡県北海道京都府
今年度320245198162140121

Right-to-left and translated strings

Dir="BitDir.Rtl" mirrors the title, legend, tooltip and screen-reader table, but not the plot; set Reverse on the index scale to mirror that too. Strings translates what the chart writes for screen readers and the CSV - what the plot is called, the legend's name, the announced positions, the table headers - and NavigationHint the keyboard instructions.
فروش فصلی
با کلیدهای جهت‌نما میان فصل‌ها و سری‌ها حرکت کنید.
فروش فصلی
سریبهارتابستانپاییززمستان
درآمد120190160250
هزینه80120110150

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.