0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio | WPF > グラフ > LiveCharts > Geared > Values = values.AsGearedValues().WithQuality(Quality.Low) の内容

Last updated at Posted at 2017-11-27
動作環境
Windows 8.1 Pro (64bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2

Visual Studio | WPF > グラフ > LiveCharts > 折れ線グラフ描画のパフォーマンス > 1000点: zoomingとpanningが重い | 1万点: 表示されない
にて気になった折れ線グラフの描画高速化。

Values = values.AsGearedValues().WithQuality(Quality.Low)

上記では何をしているのか。

`2. A smarter values instance

...
then you can use the low quality to render it faster, the error of the lower quality is 10px, but in an opposite case, you care about accuracy, then you must use the highest quality, the rendering time will be slower, but you won't have any visual error, there are also 2 more available qualities, medium quality, with a max error of 5px, and high which is the default quality, it has a practically invisible max error of 2px.

low qualityにした場合の誤差が10px。
つまり、10pxに1点を打つように間引きをしているようだ。

10pxに1点というのは感覚的に「粗い」と感じる。
それくらいの間引きをしないとLiveChartsではスムーズな描画をできないのだろうか。

1000点
qiita.png

1000点のlow quality (10px誤差)
qiita.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?