I would like to define two FastHeatMapRenderableSeries.ColorMap s. One in black and white for printing and the other one, … Why not just for the fun of it :D. How would I be able to switch between ColorMaps ( preferably through binding ) in wpf?
- Michel Moe asked 9 years ago
- last edited 9 years ago
- You must login to post comments
Hi Michel,
The FastHeatMapRenderableSeries.ColorMap property accepts a LinearGradientBrush. We get the gradient stops out (position, color) in order to determine the heatmap colours.
So change this dynamically, simply bind to the ColorMap property with a converter, e.g.
<UserControl.Resources>
<LinearGradientBrush x:Key="PrintBrush">
<GradientStop Offset="0" Color="Black" />
<GradientStop Offset="1" Color="White" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="DefaultBrush">
<GradientStop Offset="0" Color="DarkBlue" />
<GradientStop Offset="0.2" Color="CornflowerBlue" />
<GradientStop Offset="0.4" Color="DarkGreen" />
<GradientStop Offset="0.6" Color="Chartreuse" />
<GradientStop Offset="0.8" Color="Yellow" />
<GradientStop Offset="1" Color="Red" />
</LinearGradientBrush>
<BoolToValueConverter x:Key="ColorMapConverter"
TrueValue="{StaticResource PrintBrush}"
FalseValue="{StaticResource DefaultBrush}"/>
</UserControl.Resources>
...
<s:FastHeatmapRenderableSeries ColorMap="{Binding IsPrintModeBooleanProperty, Converter={StaticResource ColorMapConverter}}"/>
There is an example of BoolToValueConverter in the SciChart WPF Examples Suite.
Hope this helps!
- Andrew Burnett-Thompson answered 9 years ago
- last edited 9 years ago
- You must login to post comments
I am considering applying server-side licensing for my javerScript application.
In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)
However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)
I wonder if there is a sample code implemented in C++ for server-side licensing.
Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?
- Michel Moe answered 9 years ago
-
awesome, glad to be of help!
- You must login to post comments