SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Answered
0
0

Hi,

I tried to implement a colormap view next to the heatmap chart. But couldn’t figure out how to set it up. It seems like it won’t work this way.

SciChartHeatmapColourMap colorMapView = new SciChartHeatmapColourMap(this);
colorMapView.findViewById(R.id.colorMapView);

I don’t know how Bindview works in the example code. Could you tell me how to link SciChartHeatmapColourMap to the view in layout xml?

Thanks.

Version
3.1.0.4341
  • You must to post comments
Best Answer
0
0

Hi Gang Xu,

BindView just finds View in example Fragment and assigns it to specified field. Without it you would need to write something like this:

SciChartHeatmapColourMap colorMapView = (SciChartHeatmapColourMap) findViewById(R.id.colorMapView);

Best regards,
Yura

  • Gang Xu
    Thanks Yura. I’m not sure why it wasn’t working when I test it this way. I must made some mistakes.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.