integrating new visualizations with pentaho using the viz

18
Integrating New Visualizations with Pentaho Using the Viz API Nick Keune, Pentaho Embedded & Advanced Analytics SE, Hitachi Vantara Ben Hopkins Pentaho Senior Product Manager, Hitachi Vantara

Upload: others

Post on 16-Oct-2021

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Integrating New Visualizations with Pentaho Using the Viz

IntegratingNewVisualizationswithPentahoUsingtheViz APINickKeune,Pentaho Embedded&AdvancedAnalyticsSE,HitachiVantaraBenHopkinsPentaho SeniorProductManager,HitachiVantara

Page 2: Integrating New Visualizations with Pentaho Using the Viz

Agenda

Inthissession,wewillcover:

• OverviewofthenewViz API,andhowitenablesnewchartintegrationandreusability

• Howithasbeenimprovedandwhyitisvaluablefordevelopers

• Technicaldeepdiveanddemoofvisualizationintegrationexamples

Page 3: Integrating New Visualizations with Pentaho Using the Viz

VizAPIOverview

Page 4: Integrating New Visualizations with Pentaho Using the Viz

WhatistheVisualizationAPI?

• Viz API3.0isalayerthatallowsAnalyzer,CTools,andDataExplorer(PDI)tousevisualizationsinaunified,pluggableway

• BuiltontopofotherPlatformJavaScriptAPIsthatensureseamlessdataaccessandprovidevisualizationswithvalidation,theming,andotherfeatures

• InViz API,eachvisualizationisconstitutedby:–Model(s),whichidentifiesthevisualizationanddefinesitintermsofitsdatarequirements(suchasbarsize,category,measure)– View(s),whichimplementstheactualrenderingusingchosentechnologies(e.g.HTML,SVG,D3),andhandleuserinteractionandotheractions

Page 5: Integrating New Visualizations with Pentaho Using the Viz

VizAPIDiagram

Analyzer CDF/CDE DE(PDI)

Viz Framework3.0

“Containers”

PentahoOOB(CCC) D3 FusionCharts andothers…Visualizations

(Librariesshown)

Configurations(File)

Page 6: Integrating New Visualizations with Pentaho Using the Viz

WhyDoesItMattertoPentahoCustomers?

• Easiertointegrate3rd partyvisualizationsanddevelopyourowncharts

• Visualizations,styles,andconfigurationsarereusableacrossAnalyzer,CTools,PDI

VizAPI3.0

Page 7: Integrating New Visualizations with Pentaho Using the Viz

WhyDoesItMattertoPentahoCustomers?

• In7.1,PentahodefinedanewgloballookandfeelfordefaultchartsusingViz API3.0

• AppliestoAnalyzer,CTools,andPDI

NewLegend,Fonts

NewColorPalette

+Scrolling

Page 8: Integrating New Visualizations with Pentaho Using the Viz

What’sNewandImprovedforDevelopers?

• ClearseparationbetweenwhatVisualizationcontrolsvs.whatContainercontrols– lesshackingAnalyzer!

• UsageofMavenforpackagingmakesitpossibletomanagecontentanddependenciesinanautomatedfashionasyoudevelop

• Easiertotestandvalidateeverythingisworking– beforedeployingthevisualizationtoPentaholive

• MorecompletedocumentationandSDKwithsamplesyoucandownload–includingD3barchartintegrationtutorial

• …butnoteViz API3.0isstilla‘beta,’meaningitmaychangeinafuturerelease

Page 9: Integrating New Visualizations with Pentaho Using the Viz

ExampleUseCase– Healthcare

• Organization:Cancercenteroflargehealthresearchinstitute

• Problem:Neededspecificchartforproperanalysisacrosspatientgroups,bettersupportingprecisionmedicine

• Solution:CTools dashboardwithcustomViz APIchartthatcallsPDIendpoints

• Benefits:NewvisualizationforPoCdevelopedinafewdays

Page 10: Integrating New Visualizations with Pentaho Using the Viz

Context– WhatRoleDoestheVisualizationAPIPlay?

Page 11: Integrating New Visualizations with Pentaho Using the Viz

RunningandSupportingCustomVisualizations

AuthenticateAuthorize

InteractiveWebPage

Query

Dataset

HTML

Data(json)

Blending/FederationQuality/ValidationDataOrchestration

Authentication/AuthorizationLogging,Auditing,VersioningCaching,Multitenancy,Scaling

BindingDatatoHTMLRegisteringActionsStylingClasses

WebServer

RenderingJavaScript

Figure2:FunctionalconsiderationsforProductionVisualsonawebpage

DataSource

Page 12: Integrating New Visualizations with Pentaho Using the Viz

YourCustomVisualizations,Pentaho’sPlatform

Focusonthedesignandbehavior ofyourcustomvisual,trustinPentahotostreamlinethedata,application,serverandobjectconsiderations.

Page 13: Integrating New Visualizations with Pentaho Using the Viz

DemoCode;Results

Page 14: Integrating New Visualizations with Pentaho Using the Viz

AbilityofViz3.0API

Capabilities

• Makesa“FirstClassObject”insideDE,PAZ,CDE;justlikeootb Charts– DoesallthiswithnativeHTML5elements,directlyinDOM(notvia<iframe>)

• IntegratewithPentahodatabackend,usercontext,visualpresentation• Hookstosharedglobalization,localization,brandingconfigurations• Dynamicdatabindings,Robustpresentationlogic,Packagedserverside

• Eventsbubblethroughtheexistingcontract:AnalyzerAPIgetsview.action

Page 15: Integrating New Visualizations with Pentaho Using the Viz

AbilityofViz3.0API

Considerations

• MVCframework

• APIrequirements– baseobjectinheritance

• DependencyonRequireJS• Drivenbystructureofdata,whichcanvarybetweenCDE&PAZ/DE• InfuturemayextendtheDataAPI(soitcandopostquerydatamanipulationviaAPImethods)

Page 16: Integrating New Visualizations with Pentaho Using the Viz

Summary

Whatwecoveredtoday:

• OverviewofthenewViz API,andhowitenablesnewchartintegrationandreusability

• Howithasbeenimprovedandwhyitisvaluablefordevelopers

• Technicaldeepdiveanddemoofvisualizationintegrationexamples

Page 17: Integrating New Visualizations with Pentaho Using the Viz

NextSteps

Wanttolearnmore?

• VizAPItutorialandsamplefordownload– github pagetitled“VisualizationAPI”– pentaho.github.io/pentaho-platform-plugin-common-ui/platform/visual/

• VizAPIDetaileddocumentation– docpagetitled“VisualizationAPI”– help.pentaho.com/Documentation/7.1/0R0/070/javascript-apis/platform/pentaho.visual

• PentahoWorld Session:“Hands-onTraining:CreatingResponsiveDashboardLayoutswithCtools”

• PentahoWorld Session:“Dev-by-Dev:Usingthe8.0VisualizationAPItoCreateCustomVisualizations”

Page 18: Integrating New Visualizations with Pentaho Using the Viz