0

I'm trying to setup Column Chart from WinRTXamlToolkit.
Let me ask:

Is there any guide for charts from this lib? Or which way you found the easiest to learn using charts?

How can I put labels near axises? In points like on below image:

  • P0: Times
  • P1: States

How to move labels above chart (like on below image)?

Thank you in advance!

enter image description here

Grzegorz Dev
  • 3,073
  • 1
  • 18
  • 22

1 Answers1

1

I found "workarounds" (far away from perfection but works).

Below WinRTXamlToolkit = WXT

Fastest way (if you don't know WXT) is:

To get column colors for legend do

MethodInXamlBackingObject() {
   var paletteOfFirstColumn = ColumnChart.Palette[0];
   var columnFirstBrush = paletteOfFirstColumn["Background"];
}

BTW. tips where from to learn WXT:

  • analyse sources of samples in WXT - these are very detailed
  • analyse WXT behaviour with tool "WXT Debug Console" (included in demo app) - very powerfull
  • read arts about WXT and WPF Toolkit (from which WXT is a fork)
Grzegorz Dev
  • 3,073
  • 1
  • 18
  • 22
  • 1
    Actually, it's ported from Silverlight toolkit, but that likely originated in WPF Toolkit first. – Filip Skakun Aug 15 '20 at 04:33
  • 1
    BTW, I find when people ask about customizing this old heap of code that they would usually achieve their results faster by writing their own charts from scratch like this one: https://github.com/xyzzer/Win2DChartSample – Filip Skakun Aug 15 '20 at 04:36