Managing a group of Tableau consultants who want to satisfy demanding customers is an exciting job. As Tableau helps people understand their data, we help them do it in the most efficient and elegant way.
Sometimes this involves heavy customization. We might add beautiful tailor-made chart types. Or we might get the dashboard's underlying and summary data in multi-sheet Excel workbooks. Sometimes we even provide a real-time interactive experience by manipulating the data and integrating with external business applications—all directly from the visualisation itself.
We leverage Tableau 10's feature-rich APIs to handle that last request. They provide a simple way to combine custom workflows with Tableau's unparalleled visualization capabilities. The most sought-after requirement is to extend collaboration capabilities with cross-device data annotation and database write-back features.
Tableau 10's enhanced JavaScript API’s getData() functionality lets us get at the heart of these matters with just a few lines of code. As we recently demonstrated for two of our clients, adding a comment or a question on a data point in a Tableau Server visualization is no longer just wishful thinking. By providing programmatic access to the underlying data in a visualization, these previously unaddressed requirements are becoming a reality.
This way, decision makers and analysts can stay right with the data and start asking deep-dive questions in context. Even enterprise workflow tools can be extended in an agile way by directly feeding them the data from visualizations. Interactivity has generally been the hallmark of Tableau’s visualizations, and getData() takes this interactivity to a whole new level.
A simple use case is to modify the underlying data in a visualization—for example, a comment field filled out by the analyst. To make it more dramatic, we’ll modify the data points in the actual visualization:
By selecting the data point on the visualization, you can add a comment. All details in this prompt are provided by the getData() API call already.
If we hook up this prompt to a web service that can write in the database that supplies the underlying data, we get same functionality you see above. You enter a comment, hit “submit,” and you instantly see the modified values on the auto-refreshed view. All these components are held together by getData() as this piece of JavaScript code has access to the data set.
Behind the Scenes
The project uses a couple of black-belt techniques to achieve a seamless integration between the Tableau Server VizPortal and our interactive dashboard.
First of all, the input form is an embedded HTML frame inside the dashboard. This ensures that input controls are an organic part of the visualization. Also, by using the Tableau JavaScript API without embedding, there is no need to embed the dashboard into a third-party portal; all Tableau JavaScript API functions work perfectly in VizPortal.
But this is just one example. Since the API covers all interactions from data filters to mark selection events, the possibilities are endless.
All technical instructions on how to build and deploy this sample project are available on GitHub.
Deze blog is eerder verschenen op de website van Tableau.
7 november (online seminar op 1 middag)Praktische tutorial met Alec Sharp Alec Sharp illustreert de vele manieren waarop conceptmodellen (conceptuele datamodellen) procesverandering en business analyse ondersteunen. En hij behandelt wat elke data-pr...
11 t/m 13 november 2024Praktische driedaagse workshop met internationaal gerenommeerde trainer Lawrence Corr over het modelleren Datawarehouse / BI systemen op basis van dimensioneel modelleren. De workshop wordt ondersteund met vele oefeningen en pr...
18 t/m 20 november 2024Praktische workshop met internationaal gerenommeerde spreker Alec Sharp over het modelleren met Entity-Relationship vanuit business perspectief. De workshop wordt ondersteund met praktijkvoorbeelden en duidelijke, herbruikbare ...
26 en 27 november 2024 Organisaties hebben behoefte aan data science, selfservice BI, embedded BI, edge analytics en klantgedreven BI. Vaak is het dan ook tijd voor een nieuwe, toekomstbestendige data-architectuur. Dit tweedaagse seminar geeft antwoo...
De DAMA DMBoK2 beschrijft 11 disciplines van Data Management, waarbij Data Governance centraal staat. De Certified Data Management Professional (CDMP) certificatie biedt een traject voor het inleidende niveau (Associate) tot en met hogere niveaus van...
3 april 2025 (halve dag)Praktische workshop met Alec Sharp [Halve dag] Deze workshop door Alec Sharp introduceert conceptmodellering vanuit een non-technisch perspectief. Alec geeft tips en richtlijnen voor de analist, en verkent datamodellering op c...
10, 11 en 14 april 2025Praktische driedaagse workshop met internationaal gerenommeerde spreker Alec Sharp over herkennen, beschrijven en ontwerpen van business processen. De workshop wordt ondersteund met praktijkvoorbeelden en duidelijke, herbruikba...
15 april 2025 Praktische workshop Datavisualisatie - Dashboards en Data Storytelling. Hoe gaat u van data naar inzicht? En hoe gaat u om met grote hoeveelheden data, de noodzaak van storytelling en data science? Lex Pierik behandelt de stromingen in ...
Deel dit bericht