Add click event to elements of a chart in superset - apache-superset

First,I follow official site,use docker and ubuntu 18, install superset,do not know is it the newest version of superset.
then I upload a csv as a table called "sales",csv is:
shop,sales
ibm,200
microsoft,100
sony,50
column shop is string type,"sales" is bigint type.
Then I add a bar chart and a big number chart.
The metric of the big number chart is sum(sales).
I Add these two chart to dashboard,it looks like:
What I need is when I click the bar "ibm",the big number chart(sum int) shows 200,when I click the bar microsoft,it shows 100.
I found a web page ,they say add call addFitler() on slice,but I can not find where is the slice and do not know how to addFilter.
Actually,I have many charts on a dashboard,and it is best if I click one element on any chart,other charts can change corresponding

Related

Add label to horizontal line annotation in Superset chart

I see how to add a horizontal line to an Apache Superset chart, but can't figure out how to display the label on the chart. I want users to be able to see it without having to mouseover the chart.
Here's an example with the Games per Genre over time demo chart. My annotation:
That gets the line to display at 100, but its label - Target Number of Games - is not visible:
Is there a way to get the label to display just above or below its line?
Per a moderator in the Apache Superset Slack message board, this is not currently possible as of v1.5.0.

Oracle APEX - Interactive Grid not rendering correctly in IE 11

I am currently using Oracle APEX version 18.2.0.00.12 on Internet Explorer 11 and I am experiencing problems with getting my interactive grids to render correctly with regards to the widths of the columns.
I created an Interactive Grid on my page with the following query:
SELECT * FROM TABLE_NAME;
I did not change any of the default settings for the region; all I did was create the IG and then run the page.
When I run the page in IE, this is what I see:
Note: I have not yet added any data to the table.
The problem is that all of the columns are too narrow. However, when I run the same page in Google Chrome, this is what I see:
The columns are all sized proportionally in order to take up the full width of the IG, which is what I want.
I do not understand why the IG is rendered differently in IE versus Chrome. I know that I can set the Minimum Column Width for each column in the IG, but I would hate to do that every time I create an IG. Is there a different solution that would make the IG render in IE the same way that it does in Chrome?
Thank you in advance.
Actually remembered a solutuion. I cannot explain to you why this works, or how best to use it. But when I had this problem I sort of patched it by saving a default report.
But the strange thing, you had to manually adjust every column, even if it was to the same size as before, it just had to have been adjusted before the default report was saved. Then the grid would show as it should, but this isnt that good a solution since its only ok if everybody uses the same size display,..

APEX 5: Make a report cell clickable and pass values

Just got started on APEX 5 and can't seem to figure out how to make cells in an Interactive Report clickable. What I'm trying to achieve is something like this:
Let's say I have a report on Page 1:
I want to be able to click on any cell in Column 2 and 3, and it should open a new page and show a list of items that made up that number, something like this:
I understand how dynamic actions work and how I can pass values but I just can't figure out how I can hyperlink or make the cells clickable, to set up any dynamic actions.
You can make the Column Type a Link and under Link Attributes, define the target page and set the items or filter report accordingly. You can have the Link Text as #COLUMN_NAME#.
I think you will find this post useful
http://www.grassroots-oracle.com/2015/12/tutorial-include-action-button-in-report.html
but most of the time you should start with a very declarative looking link builder, once you change the column Type to "Link"

Coloring Line in Table in Superset

Is it possible to color a line in a table view in the Dashboard based on the content of the table?
For example: In a list of Salesmen highlight in red all salesman with more than $200,000 of sales in the last month.
I don't believe this is something you can currently do off-the-shelf - but this is something you could probably hack together by adding some custom js and css:
Create your own override.js and override.css to implement something similar to what's described in Changing background cell of table depending on value
Add your css and js files to /superset/templates/superset/basic.html
Rebuild / restart your superset server (see https://superset.incubator.apache.org/installation.html#making-your-own-build)

Google Stack Driver Dashboard legend (GCP)

First, I am using Google StackDriver (Google Cloud Plataform)
I have a chart that shows me information amount of entry log for a specific rule, using "Logs-based metrics".
The chart contains 2 labels: "Value" and "Name".
Value is amount the entry log.
Name is "information about log and names of resources"
My problems is, I do not understand why the chart is printing 2 differents lines (2 colors/rows).
Why there are 2 differentes lines color/rows if is the same rule? I see a differente value of date, but I do not understand it.
When the chart will generate a new serie (color/row)?
Follow the example below:
Edit:
Another Example
I found the answer for this case.
Each line references to each version of app.
In this case, this chart is about informations request for unique GAE module.
I saw that value "gae_app(2017...)" is the version that was deployed.
So, now I get it.
Thank you all for the attention