简体   繁体   English

我可以在 Apache Superset 中创建自定义图表吗?

[英]Can I create a custom Chart in Apache Superset?

I have been trying to customize Superset as much as possible and have succeeded to some extent.我一直在尝试尽可能地定制 Superset,并在一定程度上取得了成功。 What I want to do now is create a custom chart based on my requirements, I have combined two big numbers to look like this using CSS properties but it's interfering with a lot of other properties of the charts in a given dashboard.我现在要做的是根据我的要求创建一个自定义图表,我使用 CSS 属性将两个大数字组合在一起,但它会干扰给定仪表板中图表的许多其他属性。 在此处输入图像描述

This is nothing but a set of two "big number" chart combined together with custom CSS.这不过是一组两个“大数字”图表与自定义 CSS 结合在一起。 What I want to achieve is a customized widget having some special design or formatting.我想要实现的是具有一些特殊设计或格式的定制小部件。 In simpler words to achieve the same below but with some word in between like: 30% Budget is providing me 70% output.用更简单的话来实现以下相同,但中间有一些词,例如:30% 预算为我提供 70% output。 Has anyone tried any hack to do that?有没有人尝试过任何黑客来做到这一点?

as an update, recently Preset has released a tutorial of just how to do that .作为更新,最近 Preset 发布了一个关于如何做到这一点的教程 Basically with the new viz plugin architecture you can use any js library and do any customization you want, and integrate it to Superset.基本上使用新的 viz 插件架构,您可以使用任何 js 库并进行任何您想要的自定义,并将其集成到 Superset。 They also talked about the new architecture and did a live demo, the video is here .他们还谈到了新架构并做了一个现场演示,视频在这里

Yes, you can create a custom chart in Superset.是的,您可以在 Superset 中创建自定义图表。

You can follow some existing chart additions for example: https://github.com/apache/incubator-superset/pull/3013您可以按照一些现有的图表添加,例如: https://github.com/apache/incubator-superset/pull/3013

to see how a new chart is developed and integrated in superset.了解如何在超集中开发和集成新图表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM