rusackas commented on pull request #18662: URL: https://github.com/apache/superset/pull/18662#issuecomment-1064843182
More screenshots and implementation examples to add to the thread for posterity: Multiple species of labels: <img width="787" alt="image" src="https://user-images.githubusercontent.com/812905/157818574-b13076e1-b7a3-40f7-9958-3864bde4664b.png"> Weighting seems to work: <img width="343" alt="image" src="https://user-images.githubusercontent.com/812905/157818733-c46ab2c3-51f4-41b0-89f4-610e7946eae2.png"> And to implement: * Import `ChartLabel` from `@superset-ui/core` * within a chart's `new ChartMetadata` object add: ```js label: { name: ChartLabel.VERIFIED, // or others from the ChartLabel enum description: t( 'This chart was tested and verified, so the overall experience should be stable.', ), }, ``` * add to `ChartLabelWeight` any new label that should affect the sort order of search results -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
