Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom colorRange with specify value (layer hexbin) #2517

Open
SincerelyUnique opened this issue Jan 21, 2024 · 0 comments
Open

Custom colorRange with specify value (layer hexbin) #2517

SincerelyUnique opened this issue Jan 21, 2024 · 0 comments
Assignees

Comments

@SincerelyUnique
Copy link

        {
          id: '7otjdz',
          type: 'hexagon',
          config: {
            dataId: 'bart-stops-geo',
            label: 'Hexagon',
            color: [123, 184, 190],
            columns: {
              lat: "latitude",
              lng: "longitude"
            },
            isVisible: true,
            visConfig: {
              opacity: 0.8,
              worldUnitSize: 300,
              resolution: 8,
              colorRange: {
                name: 'ColorBrewer GnBu-6',
                type: 'sequential',
                category: 'ColorBrewer',
                colors: ['#32CD32', '#EEC900', '#ff0000'],
                //colors: ['#43a2ca'],
                reversed: false
              },
              coverage: 1,
              sizeRange: [0, 500],
              percentile: [0, 100],
              elevationPercentile: [0, 100],
              elevationScale: 5,
              'hi-precision': false,
              // enableElevationZoomFactor: true,
              colorAggregation: 'average',
              sizeAggregation: 'count',
              enable3d: false
            },
          },
          visualChannels: {
            colorField: {
              "name": "Median RTT",
              "type": "integer"
            },
            colorScale: 'quantile',
            sizeField: null,
            sizeScale: 'linear'
          }
        },
        

image

Hi Team

Sorry to bother you, I have 3 types of data and want to display with the specify colors: green, yellow, red
we want to set:
the value < 20 to green
the value 20<= and < 100 to yellow
the value >= 100 to red

do we supoort specify the color with the fixed value range?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants