package Ġstudio . crud . feature . dashboard . widget . type . lines Ċ Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġstudio . crud . feature . core . util . KeyValuePair . Companion . vs Ċ import Ġstudio . crud . feature . dashboard . enums . Dashboard Widget Type Ċ import Ġstudio . crud . feature . dashboard . model . Dashboard Widget Ċ import Ġstudio . crud . feature . dashboard . widget . Widget Helper Ċ import Ġstudio . crud . feature . dashboard . widget . type . core . Abstract Dashboard Widget Type Data Handler Ċ Ċ @ Component Ċ class ĠLines Widget Data Handler Impl ( ĊĠĠĠ Ġprivate Ġval Ġwidget Helper : ĠWidget Helper Ċ ) Ġ: ĠAbstract Dashboard Widget Type Data Handler < Lines Widget Result DTO , ĠLines Widget Settings Po jo >() Ġ{ ĊĠĠĠ Ġoverride Ġval ĠgetType : ĠDashboard Widget Type Ġ= ĠDashboard Widget Type . Lines ĊĊĠĠĠ Ġoverride Ġfun ĠgetData ( widget : ĠDashboard Widget , Ġsettings : ĠLines Widget Settings Po jo ): ĠLines Widget Result DTO Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġentries Ġ= Ġsettings . entries . map Ġ{ Ġentry Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġentry . name Key Ġvs Ġwidget Helper . run Native Query ( entry . query ) ĊĠĠĠĠĠĠĠ Ġ}. map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLines Widget Result DTO . Lines Widget Chart Entry DTO ( it . key , Ġit . value Ġas ĠList < Number >) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn ĠLines Widget Result DTO ( entries , Ġsettings . x Labels Ġ?: Ġempty List ()) ĊĠĠĠ Ġ} Ċ }