Ccharts 3.0.0
dotnet add package Ccharts --version 3.0.0
NuGet\Install-Package Ccharts -Version 3.0.0
<PackageReference Include="Ccharts" Version="3.0.0" />
<PackageVersion Include="Ccharts" Version="3.0.0" />
<PackageReference Include="Ccharts" />
paket add Ccharts --version 3.0.0
#r "nuget: Ccharts, 3.0.0"
#:package Ccharts@3.0.0
#addin nuget:?package=Ccharts&version=3.0.0
#tool nuget:?package=Ccharts&version=3.0.0
Ccharts
Turns financial OHLC data into a string — line and candlestick charts drawn
with Unicode block characters. Nothing is printed for you, so the chart goes
wherever text goes: a terminal, a log line, a chat message, an HTML <pre>,
a file.
.NET bindings for the C library ccharts,
using source-generated P/Invoke ([LibraryImport]) over its flat C ABI.
dotnet add package Ccharts
using Ccharts;
using var chart = Chart.FromArrays(open, high, low, close, epochSeconds);
Console.Write(chart.Line(new ChartOptions
{
Width = 60,
Height = 8,
RiseColor = Color.Blue,
ShowPrices = true,
ShowTimes = true,
}));
Console.Write(chart.Candle(new ChartOptions { Width = 60, Height = 8 }));
- Data can also come from
Chart.FromJson(fixed-schema JSON) orChart.FromCsv. Colorexposes the sixteen ANSI colors; any escape string works, so 256-color and truecolor do too.new ChartOptions { Plain = true }renders with no ANSI escapes at all, for output that is not going to a console.- A
Chartis immutable once built and safe to render from several threads. Disposereleases the native memory; a finalizer covers a forgotten call.
Errors are CchartsException with a Status (InvalidArgument, Parse,
OutOfMemory, NonFinite, Dimensions).
The native library
The published package carries runtimes/{rid}/native/, so nothing has to be
installed. When working inside the repository the library comes from the CMake
build instead:
cmake -S . -B build && cmake --build build
dotnet test bindings/dotnet/tests/Ccharts.Tests
NativeLibraryResolver probes, in order: the default runtime resolution (the
NuGet layout), CCHARTS_NATIVE_DIR, and then build/ directories above the
assembly.
License
MIT — see the repository.
| Product | Versions 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.