Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set URL style in Redash

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about how to set the URL style in Redash. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

After the shared report is shared, it defaults to bright white mode. You can modify the style of the shared report by modifying the style parameter, which controls the style according to the URL parameter. The details of URL parameters are as follows:

Parameter name parameter description default value show_portal shared view URL style setting permission parameter defaults to false, if you need to set the style, you need to set the value to the form of truecolorstyle_mode setting style There are four modes "light" bright white mode (default) "deep" dark blue mode "dark" dark mode "custom" custom mode colorstyle_bg canvas background color value color code colorstyle_back view background color value color code colorstyle_color view foreground color value color code

Among the above five parameters, show_portal is equivalent to a main parameter, and the next four parameters can be implemented only if its value is set to true. When the show_ port value is set to true, when colorstyle_mode is deep, dark, light, setting other background colors has no effect, only when our colorstyle_ mode value is custom, the other three parameters set the color to take effect. Note: URL color code support method:

1. Write the color name directly:

For example: https://portal.dazdata.com/default/public/dashboards/ JbY5O5hvhBO7uB7bmP4Bcgo81uFYZle0zm2kZRsu?colorstyle_back=DeepSkyBlue&colorstyle_mode=custom&show_portal=true

2. Hexadecimal color code:

For example: https://portal.dazdata.com/default/public/dashboards/q3JrvtqBK0YtkN5ARTDshRnOnQH5Czh3kgwfLlz2?colorstyle_back=%23FFB6C1&colorstyle_mode=custom&show_portal=true

When the hexadecimal color code should pay attention to a problem, the previous "#" needs to be escaped to "% 23", otherwise the set color will not take effect.

3. RGB color value:

For example: https://portal.dazdata.com/default/public/dashboards/JbY5O5hvhBO7uB7bmP4Bcgo81uFYZle0zm2kZRsu?colorstyle_back=rgb%28255%2C255%2C0%29&colorstyle_mode=custom&show_portal=true

Note: the color is set to rgb (255Power255) pure yellow, in which parentheses need to be escaped, and "(" escaped to "% 28", ")" is escaped to "% 29".

4. RGBA color value:

For example: https://portal.dazdata.com/default/public/dashboards/JbY5O5hvhBO7uB7bmP4Bcgo81uFYZle0zm2kZRsu?colorstyle_back=rgba%28255%2C255%2C0%2C0.3%29&colorstyle_mode=custom&show_portal=true

The difference between the RGBA color value and the RGB color value is that RGBA has an extra transparency value, and we can adjust the transparency to the set color.

5. 8-bit color code:

For example: https://portal.dazdata.com/default/public/dashboards/JbY5O5hvhBO7uB7bmP4Bcgo81uFYZle0zm2kZRsu?colorstyle_back=%23FFB6C133&colorstyle_mode=custom&show_portal=true

The difference between the 8-bit color code and the hexadecimal 6-bit color code is that it has an additional transparency, which can be set on its own. The image above shows 20% transparency.

The above is how to set the URL style in the Redash shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report