How to remove the wording "metric" in apache superset "pivot tables v2"? - pivot-table

Inside the apache superset pivot v2 tables, the word "metric" appears between the columns (as in the image). I don't like it and my intention is to remove it. What can I do to remove or hide it?

Try this
.pivot_table_v_2 table.pvtTable thead tr:nth-child(1) th.pvtAxisLabel
{
color: white;
}

In the end I discovered that there is no way to do this. The only way is to modify the source code of Apache Superset.

Related

Add table of contents to hyde-hyde theme in Hugo

I'm using the hyde-hyde theme for my website with Hugo (https://github.com/htr3n/hyde-hyde), and I can't figure out a way to add a table fo contents to my posts, especially the long ones. Is there a simple way to do it with this theme ?
Thanks.
UPDATED 2018-09-30:
I misread the original question about TOC and instead gave an answer on tables in Markdown.
Regarding Table of Contents, there are essentially two approaches:
a) Using Hugo support for TOC and add some CSS rules to style the TOC as you wish
b) Using external libraries such as Tocbot that can scan the HTML content and extract the headings to create the TOC. Tocbot is very powerful and configurable.
In particular in hyde-hyde, you can do the following the achieve a TOC:
a) Add {{ .TableOfContents }} to layouts/partials/page-single/content.html, for instance
{{ if .Site.Params.toc }}
{{ .TableOfContents }}
{{ end }}
b) Style the original Hugo generated TOC with the root element nav#TableOfContents, for example
#TableOfContents > ul {
list-style-type: none;
padding-left: 0;
}
#TableOfContents > ul > li ul {
list-style-type: none;
padding-left: 1em;
}
You can investigate further the example code here where I developed a collapsible TOC.
I'm the author of hyde-hyde, so hopefully I can weigh in some suggestions.
hyde-hyde is a just theme used by gohugo to generate static Web pages (HTML/CSS/JS) from Markdown (MD) contents. So what you need is to add tables in your Markdown files.
Note that tables are not specified in original Markdown but supported in many variants like MultiMarkdown (MMD) or Github Flavored Markdown (GFM).
Another potential approach is using inline HTML supported by Markdown to add <table>...</table> as you wish. This works better in case you need complex tables (e.g. with rowspan or colspan), as you can see here.
The aforementioned methods can be used with other Hugo themes as well. Either way, Hugo can handle tables well.
I am new to gohugo, so I can't provide precise support. But it seems like gohugo comes with a built-in system for adding tables of contents to posts. Here's the gohugo documentation for the feature: https://gohugo.io/content-management/toc/
I am not sure where and how the TOC would appear in a post published with the Hyde-Hyde theme. The author of the theme might have some insight there.

how to remove "powered by zingchart" in angularjs piechart

Is there any way to remove "powered by zingchart" text in zingchart piechart ?
I saw some answers in web, that need to add license key.
Do we have any other way, without adding the license key ?
Try this...
div[id$="license"] {
display: none !important;
}
Tested here
Still, this is a illegal way. Use a valid license key for legal and permanent usage.
This is a question about how to violate our terms of agreement for using our product at https://www.zingchart.com/buy/. This is totally inappropriate and should be removed. More details on courses of action can be found at the following: https://www.zingchart.com/legal/

How to make drill down tables in Zeppelin?

I am trying to make each value in one of the column of table as clickable so that I can develop drill down functionality using Zeppelin Table. But following sample code is not working at all.
print(s"""%table
a\tb\n%html <button>x</button>1\t2\n%html <button>y</button>3\t4
""")
It will take quite some effort to make this work.
The basic idea is converting a data source (e.g. Spark DataFrame) to a complete and self contained HTML section and which is interpreted by Zeppelin. Hide and show need to be handled by javascript library.
Zeppelin using Bootstrap, so we shall use bootstrap library directly. This SO might help Bootstrap cllapse. Perhaps need more styling.
If you are just wanna drilldown function while not strictly with table. And if you are using Spark, it might be a bit easy with spark-highcharts to implement the feature like Highcharts column drill down
Finally my code worked. The issue seems to be if you have html tag in the first column, it will not work. However, it works in all the other columns. Just add one more cols in the front and it worked.
print(s"""%table
dummy\ta\tb\np1\t%html <button>x</button>1\t2\np1\t%html <button>y</button>3\t4
""")

Is it possible to use custom images for UML items in plantUML?

PlantUML is very powerful when you would like to create standard UML diagrams.
But I currently think about using PlantUML to document EIP routes (like the routes on these images: https://www.google.de/search?q=camel+route&safe=off&source=lnms&tbm=isch).
This would be pretty easy if you could specify another image instead of normal boxes for a class. Something like an SVG or WMF image or a shape script as in Sparx Enterprise Architect.
The only custom images I found in the documentation where those tiny sprites...
From PlantUML's Language Reference Guide
11.6 Legacy HTML
Some HTML tags are also working:
<img:file> : the file must be accessible by the filesystem
<img:http://url> : the URL must be available from the Internet
It appears that it shouldn't be a problem. There is also a PlantUML Word Plug-in, that would possibly enable you to paste images over the default ones otherwise.
The following PlantUML code renders a simple diagram - the referenced images have to be in the proper location...
object "inbound message" as m1
object "XML Splitter" as s1
m1 : <img:MessageIcon.gif>
s1 : <img:SplitterIcon.gif>
m2 : <img:MessageIcon.gif>
m1 -> s1
s1 -> m2
plantuml-icon-font-sprites allows using font-awesome icons within plantuml. It's awesome!
If you are building a diagram include allow_mixing at the top of the code.

Selenium web driver cannot recognize a link text

in one of the web app that I am automating, I find that I came across to some elements that have no ID or class or anything associated, or associated dynamically and won't be able to capture, therefore I have to use link text, for example, "Canada", and then when I do
driver.FindElements(By.LinkText("Canada")).Count > 0 ,
I won't get a "True" although "Canada" is right there. Does anybody came across this before and have any idea why it is?
Thank you!
Use
driver.switchTo().frame("Your LinkText Frame Name");
driver.FindElements(By.LinkText("Canada")).Count > 0 ;
and try.
I think it may work.
Are you sure "Canada" is indeed in a <a> tag ? By.LinkText is meant to search for anchor text
You can certainly create a XPath to search By.xpath. Something like "//*[contains(text(),'Canada')]" (this is the only xpath I can give you without knowing your HTML structure)

Resources