swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Heat map If max and min parameters are not passed, the colors of legend and heat grid will be inconsistent. #1925

Open eric-gitta-moore opened 7 months ago

eric-gitta-moore commented 7 months ago

Describe the bug Heat map If max and min parameters are not passed, the colors of legend and heat grid will be inconsistent.

To Reproduce

      <ngx-charts-heat-map
        *ngIf="chartType === 'heat-map'"
        class="chart-container"
        [legend]="true"
        [view]="view"
        [results]="multi"
      >

Expected behavior The legend color is consistent with the heat grid color.

Screenshots image

Demo https://stackblitz.com/~/github.com/james-curtis/ngx-charts-bug-heat-map-legend-color

ngx-charts version 20.5.0

Lyq322 commented 7 months ago

Already fixed: Issue #1910 PR #1911