Use ExtraHop to track performance for your favorite stocks.
Any Yahoo Finance readers in the crowd?
One of the new widget types introduced with the 4.0 firmware release is the Text Box widget. Don’t let the name fool you – these little widgets are flexible and powerful. Case in point: the Text Box widget supports GFM (GitHub Flavored Markdown), which, among other things, means you can actually embed images into this widget.
So, let’s have some fun with this.
It turns out that the charts on finance.yahoo.com can be easily inserted into a Text Box widget via hyperlink.
Part 1: Make a New Dashboard
To start, make a new dashboard.
Edit the layout,
and add a new region.
Drop a Text Box widget into the empty region:
Part 2: Grab one or more stock chart image URL:
Now we need to grab the URLs for the stock charts we want to add.
Browse to the yahoo finance landing page for your favorite stock. Note the stock chart toward the top-right:
You can open this image in a new tab and grab the URL:
Using GFM syntax,
you can drop the single stock chart into the textbox,
and end up with a Dashboard with a single Region featuring a lone Text Box Widget that looks like this:
To clarify one potentially confusing point: The time interval ("last 30 minutes") specified for the Region has no impact on how often the image refreshes, or what the chart looks like. At of this writing, it is not possible to create a Dashboard Region without a time interval.
Part 3: Throw Multiple Stock Chart Images in a Table
Now, let’s say we want to take this one step further and use a table to show MULTIPLE stock chart images in a single Text Box widget.
The steps are the same as above, but this time, we’ll need to use the GFM syntax for creating tables:
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
Pro tip: don’t waste time counting out pipes and dashes! Instead, use a markdown table generator.
Using a table generator like this, you can simply type in your column headers, and paste in the cell content (in this case, the URLs from yahoo finance).
When done, copy generated table to clipboard,
and paste into ExtraHop Text Box widget editor.
The finished product might look something like this:
Observant folks will have noted that the image URL contains the image dimensions (in pixels), which can be easily modified to make the stock charts appear larger or smaller. In the case of the S&P 500 and Dow Jones charts, I chose to make them larger by just increasing the value in the URLs for those charts.
What does all of this have to do with #wiredata analytics? Absolutely nothing!
I’m just highlighting the flexibility of the new Text Box widget, which is great for things like:
- Adding rich annotation to your
- Linking to other systems and tools
- Linking to resources on your intranet
- Linking to dynamic or static images
on the internet.
Hopefully this gets your imagination going.