Plotly.NET.Interactive:提供用于 .NET 交互式笔记本的交互式格式扩展。 Plotly.NET.ImageExport:提供将 Plotly.NET 图表渲染为静态图像的扩展。 Plotly.NET.CSharp:该包提供了符合 C# 语言习惯的 API。需要注意的是,你仍然可以在 C# 中使用核心 API,此包的作用仅在于消除某些场
Plotly.NET是一个强大、免费、开源的.NET交互式图表库,支持C#和F#,基于plotly.js,提供多API层创建和样式化图表。包含核心API、交互式笔记本扩展、图像导出扩展等,源码和文档可访问GitHub和官网。
说到Plotly,很多人都知道这是Python的一个非常强大的可视化图表框架,其实Plotly官方也有一个.Net版本。 01 项目简介 Plotly.NET是一个开源的.NET绘图库,它基于Plotly.js的API进行开发,提供了非常丰富的图表类型和交互功能。 Plotly.NET默认生成结果是Html文件,可以直接在浏览器打开,可以把Html保存至指定路径,或者保存...
using System; using Plotly.NET; using Plotly.NET.TraceObjects; class Program { static void Main() { var labels = new[] { "A", "B", "C", "D" }; var values = new[] { 1, 3, 2, 4 }; var pie = Chart.Pie<string, int, int>(labels, values); var chart = Chart.Plot(pie)...
Install-Package Plotly.NET.CSharp 2、示例代码 using Plotly.NET.CSharp; Chart.Point<int, int, string>( x: Enumerable.Range(0, 11), y: Enumerable.Range(0, 11)).WithTraceInfo("Plotly.NET", ShowLegend: true).WithXAxisStyle<double, double, string>(Title: Plotly.NET.Title.init("x坐标"...
usingPlotly.NET.CSharp; Chart.Point<int,int,string>( x:Enumerable.Range(0, 11), y:Enumerable.Range(0, 11) ) .WithTraceInfo("Plotly.NET",ShowLegend:true) .WithXAxisStyle<double,double,string>(Title:Plotly.NET.Title.init("x坐标")) ...
Plotly.NET.CSharp- This package provides an idiomatic C# API. Note that you can use the core API in C#, this package just removes some friction at some places. Installation You can get all Plotly.NET packages via nuget: Package NameNuget ...
Plotly.NET.Interactive (4.2.0 -> 5.0.0) Plotly.NET.CSharp (0.11.1 -> 0.12.0) New Contributors @chausner made their first contribution in #410 @IntegerMan made their first contribution in #429 @smoothdeveloper made their first contribution in #431 Full Changelog: 4.2.0...5.0.0Contributor...
Bar( x=data['trade_date'], y=data['net_amount'], name='净买入(买卖和(万))', hovertemplate="交易日期: %{x}净买入(万): %{y}游资名称: %{customdata[0]}", customdata=customdata )) # 设置图表布局 fig.update_layout( title=f'{ts_name}{ts_code} {current_date}', xaxis_title=...
import plotly.express as pxdf = px.data.election()fig = px.scatter_ternary(df, a="Joly", b="Coderre", c="Bergeron")fig.show() 1. 雷达图 雷达图以二维的形式展现了多维数据,使观察者可以一目了然地得知对象在各种指标上的强弱,最典型的就是游戏中衡量一个角色多维度的能力值。