You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "letainc (via GitHub)" <gi...@apache.org> on 2024/08/06 01:43:35 UTC

[I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

letainc opened a new issue, #20231:
URL: https://github.com/apache/echarts/issues/20231

   ### Version
   
   5.3
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/react-js-sandbox-v9dx9x?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clzhr9fqc00063b6kls07pk2t%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clzhr9fqc00023b6ko4j9siuk%2522%257D%
 255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clzhr9fqc00033b6k217zbhgf%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clzhr9fqc00053b6k0xqlih65%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clzhr9fqc00023b6ko4j9siuk%2522%253A%257B%2522tabs%2522%2
 53A%255B%257B%2522id%2522%253A%2522clzhr9fqb00013b6k2xyluztf%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.js%2522%257D%255D%252C%2522id%2522%253A%2522clzhr9fqc00023b6ko4j9siuk%2522%252C%2522activeTabId%2522%253A%2522clzhr9fqb00013b6k2xyluztf%2522%257D%252C%2522clzhr9fqc00053b6k0xqlih65%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clzhr9fqc00043b6kpaphgici%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clzhr9fqc00053b6k0xqlih65%2522%252C%2522activeTabId%2522%253A%2522clzhr9fqc00043b6kpaphgici%2522%257D%252C%2522clzhr9fqc00033b6k217zbhgf%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clzhr9fqc00033b6k217zbhgf%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522sh
 owSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
   
   ### Steps to Reproduce
   
           visualMap: {
             show:true,
             type: "piecewise",
             dimension: 4,
             showLabel: false,
             pieces: colorScale.map((item, index) => ({
               min: index === 0 ? -Infinity : colorScale[index - 1].threshold,
               max: index === colorScale.length - 1 ? Infinity : item.threshold,
               color: item.color,
             })),
             itemHeight: 16,
             itemWidth: 32,
             itemGap: 1,
             left: align.left,
             padding: 0,
             top: 0,
             orient: "horizontal",
             selectedMode: "multiple",
           },
   
   This is the initial states:
   ![Screenshot 2024-08-05 at 9 35 40 PM](https://github.com/user-attachments/assets/90aa4453-6671-4f44-b1eb-d31ef5096c10)
   this is when the first button is selected
   ![Screenshot 2024-08-05 at 9 35 56 PM](https://github.com/user-attachments/assets/92f462b5-9141-40a7-bdb4-94a8856b0dc3)
   
   
   ### Current Behavior
   
   The button should remain visible with a grey color after being clicked, allowing users to click it again.
   The label should be positioned inside the button, not beside it.
   
   ### Expected Behavior
   
   The button disappears completely upon clicking.
   
   ### Environment
   
   ```markdown
   - OS: macOS Sonoma version 14.5
   - Browser:Chrome
   - Framework:React JS
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20231:
URL: https://github.com/apache/echarts/issues/20231#issuecomment-5272898812

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20231:
URL: https://github.com/apache/echarts/issues/20231#issuecomment-5361685442

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20231:
URL: https://github.com/apache/echarts/issues/20231#issuecomment-2270434902

   [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAJgQygmBeGBtAUDGBvGMBAWwFMAuGAcgGElSBzEAJwE8YBBKgGhgDcEAGwCuFGAEYADDAC-3HPkIkxtekzYwAQj35DRlAGzS5CgkTKVVURi3Y0dAkWIDMx-bjPLLda-vYARBz0xAE5jLABdAG4sLBAABygAS3A0fAU-JIhhIQBZBHjKPAVcCAALEAB3SihmUXdcGChWeJV4pNJgUkqs0h4SmHbO0ghKbEbGgmIksEpJXmIEAA9KAFY3AY8YadmYdYXlyilwiYiG3FBBFjGqACNmKrAeO6cqM4GAeg-ZgCUEMAYYgIl2umCozFIcGeDAhpCeEVk5yapCWUAA4gVKABafbI1EAZWaggoeBBzEsrFIgiulSochgAyS1mIAAlSEkGGUoEcDEimaRiAB1JJwKBlNYADj5zIxhQkqyRxIAZtzqAAmACk_Qm8QQcDgMwYcyRUASxoGLA6YFVVAqzCSAC9wMhBNrGhAqZ1rHBciA4CpiMJBMl4sS3SZSqR7SMxgNihNcM1WpZaqQBQU3RNEMhKNmEAA6RbxAAUxf5xAAlGgAHwwYvxhO4cxicv55tIiaOfQwVtd0ibWQVisDGQKCJYGRRIA) to get you started
   
   ![image](https://github.com/user-attachments/assets/2b88ae7b-468a-473f-a0bc-3290d32a717f)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

Posted by "letainc (via GitHub)" <gi...@apache.org>.
letainc commented on issue #20231:
URL: https://github.com/apache/echarts/issues/20231#issuecomment-2283022146

   Thanks @helgasoft. It works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20231: I have tried multiple methods to target the piecewise of the visual map, but when clicking on the button, it completely disappears. I expected it to remain with a grey color so the user can click on it again. Additionally, it would be very helpful if there is a way to set the label inside the button rather than beside it.
URL: https://github.com/apache/echarts/issues/20231


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org