Hello again,
I’m working with the 2D Heatmap. I am setting the DrawMajorGridlines to true but they aren’t showing up. I then realized that I could set the Opacity of the series to something different than 1 and the gridlines are shown.
The problem with this is that I want my series background (i.e. all the places where my heatmap has no data double.NaN) to be shown in white, but setting the opacity to something different than 1 makes the background black.
I have tried to set the background to almost anything (Surface, Series, GridLinePanel) and it’s not affecting it.
Am I missing something?
I attach an image.
Thank you.
Kind regards,
Sebastian
- You must login to post comments
Hi Sebastian,
Sorry for not responding to this thread faster. We’ve been quite busy recently and couldn’t investigate the issue earlier.
I’ve taken a quick look at the sample you’ve sent to us, but couldn’t get it working. It crashed with a XAML Parse exception. So I’ve exported our “HeatMap With Text” example with my modifications and decided to send it to you. Please find it attached.
I tested it with the latest build #v4.0.6.8481, using HighSpeedRenderSurface renderer. Please try it out and let us know if it gives the expected output for you,
Best regards,
Yuriy
- Yuriy Zadereckiy answered 8 years ago
- last edited 8 years ago
-
Effectively, the issue was on the DLL version: 4.0.5. Thank you very much.
- You must login to post comments
Hi Sebastian,
I’ve tried to reproduce this issue on our side, but couldn’t. The only thing I’ve found out is that having AxisBands switched on may cause black background where vertical bands and horizontal bands intersect.
However, turning off AxisBands and setting a white background to GridLinesPanel helped to resolve this issue. Please refer to the attached screenshot.
<s:SciChartSurface>
<s:SciChartSurface.GridLinesPanelStyle>
<Style TargetType="s:GridLinesPanel">
<Setter Property="Background" Value="White"/>
</Style>
</s:SciChartSurface.GridLinesPanelStyle>
<s:SciChartSurface.XAxis>
<s:NumericAxis ... DrawMajorBands="False" />
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxis>
<s:NumericAxis ... DrawMajorBands="False" />
</s:SciChartSurface.YAxis>
<s:SciChartSurface.RenderableSeries>
<s:FastHeatMapRenderableSeries ... Opacity="0.8">
</s:FastHeatMapRenderableSeries>
</s:SciChartSurface.RenderableSeries>
</s:SciChartSurface>
You can try this out in the “HeatMap with Text” example.
Please let us know if applying these changes works for you as well. If not, may I ask you to send us a small sample which reproduces the issue for investigation?
Best regards,
Yuriy
- Yuriy Zadereckiy answered 8 years ago
- You must login to post comments
Yuriy,
Thanks for the reply. I tried what you suggested but I keep getting the black background. I’m pretty sure I’m doing something wrong.
I attach a small working sample.
I am using v4.0.5.8246
Thanks again,
Sebastian
- Sebastian de Ugarriza answered 8 years ago
- last edited 8 years ago
-
Thanks Sebastian, please let us take a look and get back to you.
-
Hello Yuriy, where you able to take a look at this issue? Thanks.
-
Good afternoon. I would like to know if you were able to look at the sample I sent. I really need this issue solved and still haven’t found a way to work-around it. Thank you.
- You must login to post comments
I still haven’t been able to solve this issue.
Please I’m pending on an answer based on the sample I provided.
Do I need to go through a support ticket for this?
Thank you.
Sebastian
- Sebastian de Ugarriza answered 8 years ago
- You must login to post comments
Hello,
I have tried again the changes Yuriy suggested, using the sample “Heatmap with Text”. In order to get NaN, I added a line of code to the data filling that if index y == x just add double.NaN to the position.
I am not getting the same result as Yuriy’s image (I attach an image showing this).
I see either three reasons to why this is the case:
1) Yuriy changed something else that wasn’t notified in the answer (something other than turning off bands and setting GridLinePanel background to white).
2) You are using a different DLL version than the latest stable release that has corrected this behavior.
Please advise.
Thank you very much.
Regards,
Sebastian
- Sebastian de Ugarriza answered 8 years ago
- You must login to post comments
Yuriy,
I was just about to post a new answer.
I believe the issue is in version v4.0.5. During the weekend I tested the Nightly Build and got the results you showed on the image in the SciChart sample.
Unfortunately, I’m not able to download from NuGet within my company, reason why I didn’t tried the latest DLLs sooner.
I’m pending on testing the latest DLLs on my actual project but I feel confident that the issue will be solved. Once I find how to get those without using Nuget or having to download them from myget.com I’ll test them ASAP and close this thread.
Thanks again,
Best regards,
Sebastian
- Sebastian de Ugarriza answered 8 years ago
- You must login to post comments
Please login first to submit.