プロジェクトのWebサイトはa package with samplesです。これらのデモでは、3Dの列を見つけることができます。シリーズタイプとデータフォーマットを変更するコードを編集した後、私は作業している3D散布図を得ました。私が使用したコード:
public ActionResult ThreeDColumn()
{
Highcharts chart = new Highcharts("chart")
.InitChart(new Chart
{
Type = ChartTypes.Scatter,
Margin = new[] { 75 },
Options3d = new ChartOptions3d
{
Enabled = true,
Alpha = 15,
Beta = 15,
Depth = 50,
ViewDistance = 25
}
})
.SetTitle(new Title { Text = "Chart rotation demo" })
.SetSubtitle(new Subtitle { Text = "Test options by dragging the sliders below" })
.SetLegend(new Legend { Enabled = false })
.SetSeries(new Series { Data = new Data(new object[,] { { 0, 0, 0 }, { 1, 1, 1 }, { 2, 2, 2 } }) });
return View(chart);
}
ファイルは、プロジェクトのControllers
ディレクトリにDemoController.cs
です。
Highchartsのデモページで同じHighchartsチャートを作成する必要がある場合は、いくつかの問題が発生する可能性があります。 DotNet.Highchartsのコードは2014年のもので、古いHighchartsバージョンで動作します。新しいコードは無関係で、まだ開発中のofficial Highcharts productで使用されています - http://dotnet.highcharts.com/だから、それを試すことができます。