Hi all!!!
I would like to share my dashboards with my customers... but I can't find many customization options...
When I embed the dashboard in HTML page after clicking SHARE --> EMBED CODE --> SAVED OBJECT the embedded dashboard doesn't have the time filter ... why?
I would like to remove "add filter" and add the time filter... is it possibile?
The URL it provides should have the current time filter (and any other filters) automatically applied. You can see this in the src for the iframe that is added to your clipboard:
Note the _g part of the URL, those are the "global" settings that should be applied. As you can hopefully see in that example, there is a "from" and "to" value for time (time%3A(from%3Anow-7d%2Cto%3Anow)). This is a RISON-encoded javascript object, setting "from" to "now-7d" and "to" to "now", meaning it will show the last 7 days of data.
If you pick the desired time range before generating the share code, you'll get that range by default. Alternatively, you can also update the value by modifying the times in the URL by hand. If you want to do this in code, rison-node is what we use to decode and encode the settings object.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.