void HistogramChartDialogController::setTemplateProperties(const css::uno:: Reference<css::beans::XPropertySet>& xTemplateProps) const In the *chart2/source/model/template/HistogramChartTypeTemplate.cxx* I have added the - void HistogramChartTypeTemplate::createChartTypes( const std::vector<std::vector<rtl::Reference<DataSeries>>>& aSeriesSeq, const std::vector<rtl::Reference<BaseCoordinateSystem>>& rCoordSys, const std::vector<rtl::Reference<ChartType>>& /* aOldChartTypesSeq */) { if (rCoordSys.empty()) return; try { // Step 1: Create and configure a new HistogramChartType instance rtl::Reference<ChartType> xCT =3D new HistogramChartType(); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_BINCOUNT, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_BINCOUNT)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_BINWIDTH, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_BINWIDTH)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_FREQUENCYTYPE, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_FREQUENCYTYPE)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_OVERFLOWBIN, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_OVERFLOWBIN)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_UNDERFLOWBIN, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_UNDERFLOWBIN)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_OVERFLOWBIN_VALUE, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_OVERFLOWBIN_VALUE)); xCT->setFastPropertyValue(PROP_HISTOGRAMCHARTTYPE_UNDERFLOWBIN_VALUE, getFastPropertyValue(PROP_HISTOGRAM_TEMPLATE_UNDERFLOWBIN_VALUE)); // // Sync the properties to the internal variables in HistogramChartType // rtl::Reference<css::beans::XPropertySet> xTemplateProps =3D this->getPropertySetInfo(); // static_cast<HistogramChartType*>(xCT.get())->syncWithTemplate(this); // Step 2: Add the configured HistogramChartType to the coordinate system rCoordSys[0]->setChartTypes(std::vector{ xCT }); // Step 3: Set Data Series and Perform Calculations if Series is Available if (!aSeriesSeq.empty()) { // For histogram, we typically use only the first series xCT->setDataSeries(aSeriesSeq[0]); // Call createCalculatedDataSeries to process the data static_cast<HistogramChartType*>(xCT.get())->createCalculatedDataSeries(); } } catch (const uno::Exception&) { DBG_UNHANDLED_EXCEPTION("chart2"); } } However, I am unsure if this is the correct way of calling the *createCalculatedDataSeries()* in the model file - *chart2/source/model/template/HistogramChartType.cxx* So that, this will eventually call the *chart2/source/model/template/HistogramCalculator.cxx* to calculate the binning. tho in the model *chart2/source/model/template/HistogramChartType.cxx* I have also added the - sal_Int8 getFrequencyType() const { return m_nFrequencyType; } sal_Int32 getBinCount() const { return m_nBinCount; } double getBinWidth() const { return m_fBinWidth; } bool isOverflowBinActive() const { return m_bOverflowBinActive; } bool isUnderflowBinActive() const { return m_bUnderflowBinActive; } double getOverflowValue() const { return m_fOverflowValue; } double getUnderflowValue() const { return m_fUnderflowValue; } void setFrequencyType(sal_Int8 nFrequencyType); void setBinCount(sal_Int32 nBinCount); void setBinWidth(double fBinWidth); void setOverflowBinActive(bool bActive); void setUnderflowBinActive(bool bActive); void setOverflowBinValue(double fValue); void setUnderflowBinValue(double fValue); void syncWithTemplate(const css::uno::Reference<css::beans::XPropertySet>& xTemplateProps); But I am not sure about these getter and setter functions. I have not modified the *chart2/source/model/template/HistogramCalculator.cxx* to use these new parameters set in the UI as I am unsure of what I have done to have access to the ui parameters. I also tried to access them in the view too - HistogramChart::HistogramChart(const rtl::Reference<ChartType>& xChartTypeModel, sal_Int32 nDimensionCount) : BarChart(xChartTypeModel, nDimensionCount) , m_nBinCount(1) , m_fBinWidth(1.0) , m_nFrequencyType(0) , m_bOverflowBinActive(false) , m_bUnderflowBinActive(false) { // We only support 2 dimensional histogram charts assert(nDimensionCount =3D=3D 2 && "HistogramChart only supports 2D charts"= ); // Runtime check for all builds if (nDimensionCount !=3D 2) { // Log a warning or throw an exception if appropriate SAL_WARN("chart2", "HistogramChart created with invalid dimension count. Forcing 2D."); } PlotterBase::m_pPosHelper =3D &m_aMainPosHelper; VSeriesPlotter::m_pMainPosHelper =3D &m_aMainPosHelper; try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"GapwidthSequence"_ustr) >>=3D m_aGapwidthSequence; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"BinCount"_ustr) >>=3D m_nBinCount; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"BinWidth"_ustr) >>=3D m_fBinWidth; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"FrequencyType"_ustr) >>=3D m_nFrequencyType; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"OverflowBin"_ustr) >>=3D m_bOverflowBinActive; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } try { if (m_xChartTypeModel.is()) m_xChartTypeModel->getPropertyValue(u"UnderflowBin"_ustr) >>=3D m_bUnderflowBinActive; } catch (const uno::Exception&) { TOOLS_WARN_EXCEPTION("chart2", ""); } } *But we want to do it in the model as per the comment(commit message) made by Toma=C5=BE in the PR - https://gerrit.libreoffice.org/c/core/+/171952 <https://gerrit.libreoffice.org/c/core/+/171952>* --=20 *Regards,* *Devansh* --00000000000062bb1606260350a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div style=3D"font-family:comic sans ms,sans-serif" class= =3D"gmail_default"></div><div class=3D"gmail_default" style=3D"font-family:= comic sans ms,sans-serif"><font size=3D"1">[Part of Adding Histogram suppor= t to LO GSoC-2024]</font></div><div class=3D"gmail_default" style=3D"font-f= amily:comic sans ms,sans-serif"><br></div><div class=3D"gmail_default" styl= e=3D"font-family:comic sans ms,sans-serif">Hi,</div><div class=3D"gmail_def= ault" style=3D"font-family:comic sans ms,sans-serif"><br></div><div><div st= yle=3D"font-family:comic sans ms,sans-serif" class=3D"gmail_default">I have= been holding this mail for the past four days and am looking for the corre= ct way to access the UI input from the sidebar of the chart type selection.= <br></div><br></div><div>How<span class=3D"gmail_default" style=3D"font-fam= ily:comic sans ms,sans-serif"> do I approach accessing </span>UI<span class= =3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif"> changes = done by </span>the u<span class=3D"gmail_default" style=3D"font-family:comi= c sans ms,sans-serif">ser for the c</span><span class=3D"gmail_default" sty= le=3D"font-family:comic sans ms,sans-serif"></span>u<span class=3D"gmail_de= fault" style=3D"font-family:comic sans ms,sans-serif">stom bin in the model= ? <b>Related PR</b> -<b> </b></span><b><a href=3D"https://gerrit.libreoffic= e.org/c/core/+/170909">https://gerrit.libreoffice.org/c/core/+/<span class= =3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif"></span>17= 0909</a></b></div><div class=3D"gmail_default" style=3D"font-family:comic s= ans ms,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font-fam= ily:comic sans ms,sans-serif"><br></div><div class=3D"gmail_default" style= =3D"font-family:comic sans ms,sans-serif"><i>(I am also following Kurt'= s PR closely</i> -<a href=3D"https://gerrit.libreoffice.org/c/core/+/174301= "> <i>https://gerrit.libreoffice.org/c/core/+/174301</i></a><i>)</i></div><= div class=3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif">= <br></div><div class=3D"gmail_default" style=3D"font-family:comic sans ms,s= ans-serif"><br></div><div class=3D"gmail_default" style=3D"font-family:comi= c sans ms,sans-serif">From the controller <b>chart2/source/controller/dialo= gs/ChartTypeDialogController.cxx</b></div><div class=3D"gmail_default" styl= e=3D"font-family:comic sans ms,sans-serif">we are registering the changes f= rom the UI to the model template via the</div><div class=3D"gmail_default" = style=3D"font-family:comic sans ms,sans-serif"><div style=3D"color:rgb(204,= 204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono&q= uot;,"monospace",monospace;font-weight:normal;font-size:14px;line= -height:19px;white-space:pre"><div><span style=3D"color:rgb(86,156,214)"><b= r></span></div><div><span style=3D"color:rgb(86,156,214)">void</span><span = style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,17= 6)">HistogramChartDialogController</span><span style=3D"color:rgb(204,204,2= 04)">::</span><span style=3D"color:rgb(220,220,170)">setTemplateProperties<= /span><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:r= gb(86,156,214)">const</span><span style=3D"color:rgb(204,204,204)"> </span>= <span style=3D"color:rgb(78,201,176)">css</span><span style=3D"color:rgb(20= 4,204,204)">::</span><span style=3D"color:rgb(78,201,176)">uno</span><span = style=3D"color:rgb(204,204,204)">::</span><span style=3D"color:rgb(78,201,1= 76)">Reference</span><span style=3D"color:rgb(204,204,204)"><</span><spa= n style=3D"color:rgb(78,201,176)">css</span><span style=3D"color:rgb(204,20= 4,204)">::</span><span style=3D"color:rgb(78,201,176)">beans</span><span st= yle=3D"color:rgb(204,204,204)">::</span><span style=3D"color:rgb(78,201,176= )">XPropertySet</span><span style=3D"color:rgb(204,204,204)">></span><sp= an style=3D"color:rgb(86,156,214)">&</span><span style=3D"color:rgb(204= ,204,204)"> </span><span style=3D"color:rgb(156,220,254)">xTemplateProps</s= pan><span style=3D"color:rgb(204,204,204)">) </span><span style=3D"color:rg= b(86,156,214)">const</span></div><div><span style=3D"color:rgb(204,204,204)= "><br></span></div></div></div><div class=3D"gmail_default" style=3D"font-f= amily:comic sans ms,sans-serif"><br></div><div class=3D"gmail_default" styl= e=3D"font-family:comic sans ms,sans-serif"><br></div><div class=3D"gmail_de= fault" style=3D"font-family:comic sans ms,sans-serif">In the <b>chart2/sour= ce/model/template/HistogramChartTypeTemplate.cxx</b></div><div class=3D"gma= il_default" style=3D"font-family:comic sans ms,sans-serif">I have added the= -</div><div class=3D"gmail_default" style=3D"font-family:comic sans ms,san= s-serif"><br></div><div class=3D"gmail_default" style=3D"font-family:comic = sans ms,sans-serif"><div style=3D"color:rgb(204,204,204);background-color:r= gb(31,31,31);font-family:"Droid Sans Mono","monospace",= monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pr= e"><div><span style=3D"color:rgb(86,156,214)">void</span><span style=3D"col= or:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,176)">Histogra= mChartTypeTemplate</span><span style=3D"color:rgb(204,204,204)">::</span><s= pan style=3D"color:rgb(220,220,170)">createChartTypes</span><span style=3D"= color:rgb(204,204,204)">(</span></div><div><span style=3D"color:rgb(204,204= ,204)"> </span><span style=3D"color:rgb(86,156,214)">const</span><span s= tyle=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,176= )">std</span><span style=3D"color:rgb(204,204,204)">::</span><span style=3D= "color:rgb(78,201,176)">vector</span><span style=3D"color:rgb(204,204,204)"= ><</span><span style=3D"color:rgb(78,201,176)">std</span><span style=3D"= color:rgb(204,204,204)">::</span><span style=3D"color:rgb(78,201,176)">vect= or</span><span style=3D"color:rgb(204,204,204)"><</span><span style=3D"c= olor:rgb(78,201,176)">rtl</span><span style=3D"color:rgb(204,204,204)">::</= span><span style=3D"color:rgb(78,201,176)">Reference</span><span style=3D"c= olor:rgb(204,204,204)"><</span><span style=3D"color:rgb(78,201,176)">Dat= aSeries</span><span style=3D"color:rgb(204,204,204)">>>></span><sp= an style=3D"color:rgb(86,156,214)">&</span><span style=3D"color:rgb(204= ,204,204)"> </span><span style=3D"color:rgb(156,220,254)">aSeriesSeq</span>= <span style=3D"color:rgb(204,204,204)">,</span></div><div><span style=3D"co= lor:rgb(204,204,204)"> </span><span style=3D"color:rgb(86,156,214)">cons= t</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color= :rgb(78,201,176)">std</span><span style=3D"color:rgb(204,204,204)">::</span= ><span style=3D"color:rgb(78,201,176)">vector</span><span style=3D"color:rg= b(204,204,204)"><</span><span style=3D"color:rgb(78,201,176)">rtl</span>= <span style=3D"color:rgb(204,204,204)">::</span><span style=3D"color:rgb(78= ,201,176)">Reference</span><span style=3D"color:rgb(204,204,204)"><</spa= n><span style=3D"color:rgb(78,201,176)">BaseCoordinateSystem</span><span st= yle=3D"color:rgb(204,204,204)">>></span><span style=3D"color:rgb(86,1= 56,214)">&</span><span style=3D"color:rgb(204,204,204)"> </span><span s= tyle=3D"color:rgb(156,220,254)">rCoordSys</span><span style=3D"color:rgb(20= 4,204,204)">,</span></div><div><span style=3D"color:rgb(204,204,204)"> <= /span><span style=3D"color:rgb(86,156,214)">const</span><span style=3D"colo= r:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,176)">std</span= ><span style=3D"color:rgb(204,204,204)">::</span><span style=3D"color:rgb(7= 8,201,176)">vector</span><span style=3D"color:rgb(204,204,204)"><</span>= <span style=3D"color:rgb(78,201,176)">rtl</span><span style=3D"color:rgb(20= 4,204,204)">::</span><span style=3D"color:rgb(78,201,176)">Reference</span>= <span style=3D"color:rgb(204,204,204)"><</span><span style=3D"color:rgb(= 78,201,176)">ChartType</span><span style=3D"color:rgb(204,204,204)">>>= ;</span><span style=3D"color:rgb(86,156,214)">&</span><span style=3D"co= lor:rgb(106,153,85)"> /* aOldChartTypesSeq */</span><span style=3D"color:rg= b(204,204,204)">)</span></div><div><span style=3D"color:rgb(204,204,204)">{= </span></div><div><span style=3D"color:rgb(204,204,204)"> </span><span s= tyle=3D"color:rgb(197,134,192)">if</span><span style=3D"color:rgb(204,204,2= 04)"> (</span><span style=3D"color:rgb(156,220,254)">rCoordSys</span><span = style=3D"color:rgb(204,204,204)">.</span><span style=3D"color:rgb(220,220,1= 70)">empty</span><span style=3D"color:rgb(204,204,204)">())</span></div><di= v><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"colo= r:rgb(197,134,192)">return</span><span style=3D"color:rgb(204,204,204)">;</= span></div><br><div><span style=3D"color:rgb(204,204,204)"> </span><span= style=3D"color:rgb(197,134,192)">try</span></div><div><span style=3D"color= :rgb(204,204,204)"> {</span></div><div><span style=3D"color:rgb(106,153,= 85)"> // Step 1: Create and configure a new HistogramChartType insta= nce</span></div><div><span style=3D"color:rgb(204,204,204)"> </span>= <span style=3D"color:rgb(78,201,176)">rtl</span><span style=3D"color:rgb(20= 4,204,204)">::</span><span style=3D"color:rgb(78,201,176)">Reference</span>= <span style=3D"color:rgb(212,212,212)"><</span><span style=3D"color:rgb(= 78,201,176)">ChartType</span><span style=3D"color:rgb(212,212,212)">></s= pan><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb= (156,220,254)">xCT</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(212,212,212)">=3D</span><span style=3D"color:rgb(204,= 204,204)"> </span><span style=3D"color:rgb(197,134,192)">new</span><span st= yle=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,176)= ">HistogramChartType</span><span style=3D"color:rgb(204,204,204)">();</span= ></div><div><span style=3D"color:rgb(204,204,204)"> </span><span sty= le=3D"color:rgb(156,220,254)">xCT</span><span style=3D"color:rgb(220,220,17= 0)">-></span><span style=3D"color:rgb(220,220,170)">setFastPropertyValue= </span><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:= rgb(79,193,255)">PROP_HISTOGRAMCHARTTYPE_BINCOUNT</span><span style=3D"colo= r:rgb(204,204,204)">,</span></div><div><span style=3D"color:rgb(204,204,204= )"> </span><span style=3D"color:rgb(220,22= 0,170)">getFastPropertyValue</span><span style=3D"color:rgb(204,204,204)">(= </span><span style=3D"color:rgb(79,193,255)">PROP_HISTOGRAM_TEMPLATE_BINCOU= NT</span><span style=3D"color:rgb(204,204,204)">));</span></div><div><span = style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(15= 6,220,254)">xCT</span><span style=3D"color:rgb(220,220,170)">-></span><s= pan style=3D"color:rgb(220,220,170)">setFastPropertyValue</span><span style= =3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(79,193,255)">P= ROP_HISTOGRAMCHARTTYPE_BINWIDTH</span><span style=3D"color:rgb(204,204,204)= ">,</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(220,220,170)">getFastPro= pertyValue</span><span style=3D"color:rgb(204,204,204)">(</span><span style= =3D"color:rgb(79,193,255)">PROP_HISTOGRAM_TEMPLATE_BINWIDTH</span><span sty= le=3D"color:rgb(204,204,204)">));</span></div><div><span style=3D"color:rgb= (204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">xCT</s= pan><span style=3D"color:rgb(220,220,170)">-></span><span style=3D"color= :rgb(220,220,170)">setFastPropertyValue</span><span style=3D"color:rgb(204,= 204,204)">(</span><span style=3D"color:rgb(79,193,255)">PROP_HISTOGRAMCHART= TYPE_FREQUENCYTYPE</span><span style=3D"color:rgb(204,204,204)">,</span></d= iv><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(220,220,170)">getFastPropertyValue</s= pan><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb= (79,193,255)">PROP_HISTOGRAM_TEMPLATE_FREQUENCYTYPE</span><span style=3D"co= lor:rgb(204,204,204)">));</span></div><div><span style=3D"color:rgb(204,204= ,204)"> </span><span style=3D"color:rgb(156,220,254)">xCT</span><spa= n style=3D"color:rgb(220,220,170)">-></span><span style=3D"color:rgb(220= ,220,170)">setFastPropertyValue</span><span style=3D"color:rgb(204,204,204)= ">(</span><span style=3D"color:rgb(79,193,255)">PROP_HISTOGRAMCHARTTYPE_OVE= RFLOWBIN</span><span style=3D"color:rgb(204,204,204)">,</span></div><div><s= pan style=3D"color:rgb(204,204,204)"> </sp= an><span style=3D"color:rgb(220,220,170)">getFastPropertyValue</span><span = style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(79,193,25= 5)">PROP_HISTOGRAM_TEMPLATE_OVERFLOWBIN</span><span style=3D"color:rgb(204,= 204,204)">));</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(156,220,254)">xCT</span><span style=3D"c= olor:rgb(220,220,170)">-></span><span style=3D"color:rgb(220,220,170)">s= etFastPropertyValue</span><span style=3D"color:rgb(204,204,204)">(</span><s= pan style=3D"color:rgb(79,193,255)">PROP_HISTOGRAMCHARTTYPE_UNDERFLOWBIN</s= pan><span style=3D"color:rgb(204,204,204)">,</span></div><div><span style= =3D"color:rgb(204,204,204)"> </span><span = style=3D"color:rgb(220,220,170)">getFastPropertyValue</span><span style=3D"= color:rgb(204,204,204)">(</span><span style=3D"color:rgb(79,193,255)">PROP_= HISTOGRAM_TEMPLATE_UNDERFLOWBIN</span><span style=3D"color:rgb(204,204,204)= ">));</span></div><div><span style=3D"color:rgb(204,204,204)"> </spa= n><span style=3D"color:rgb(156,220,254)">xCT</span><span style=3D"color:rgb= (220,220,170)">-></span><span style=3D"color:rgb(220,220,170)">setFastPr= opertyValue</span><span style=3D"color:rgb(204,204,204)">(</span><span styl= e=3D"color:rgb(79,193,255)">PROP_HISTOGRAMCHARTTYPE_OVERFLOWBIN_VALUE</span= ><span style=3D"color:rgb(204,204,204)">,</span></div><div><span style=3D"c= olor:rgb(204,204,204)"> </span><span style= =3D"color:rgb(220,220,170)">getFastPropertyValue</span><span style=3D"color= :rgb(204,204,204)">(</span><span style=3D"color:rgb(79,193,255)">PROP_HISTO= GRAM_TEMPLATE_OVERFLOWBIN_VALUE</span><span style=3D"color:rgb(204,204,204)= ">));</span></div><div><span style=3D"color:rgb(204,204,204)"> </spa= n><span style=3D"color:rgb(156,220,254)">xCT</span><span style=3D"color:rgb= (220,220,170)">-></span><span style=3D"color:rgb(220,220,170)">setFastPr= opertyValue</span><span style=3D"color:rgb(204,204,204)">(</span><span styl= e=3D"color:rgb(79,193,255)">PROP_HISTOGRAMCHARTTYPE_UNDERFLOWBIN_VALUE</spa= n><span style=3D"color:rgb(204,204,204)">,</span></div><div><span style=3D"= color:rgb(204,204,204)"> </span><span styl= e=3D"color:rgb(220,220,170)">getFastPropertyValue</span><span style=3D"colo= r:rgb(204,204,204)">(</span><span style=3D"color:rgb(79,193,255)">PROP_HIST= OGRAM_TEMPLATE_UNDERFLOWBIN_VALUE</span><span style=3D"color:rgb(204,204,20= 4)">));</span></div><br><div><span style=3D"color:rgb(106,153,85)"> = // // Sync the properties to the internal variables in HistogramChartType</= span></div><div><span style=3D"color:rgb(106,153,85)"> // rtl::Refer= ence<css::beans::XPropertySet> xTemplateProps =3D this->getPropert= ySetInfo();</span></div><div><span style=3D"color:rgb(106,153,85)"> = // static_cast<HistogramChartType*>(xCT.get())->syncWithTemplate(t= his);</span></div><br><div><span style=3D"color:rgb(106,153,85)"> //= Step 2: Add the configured HistogramChartType to the coordinate system</sp= an></div><div><span style=3D"color:rgb(204,204,204)"> </span><span s= tyle=3D"color:rgb(156,220,254)">rCoordSys</span><span style=3D"color:rgb(22= 0,220,170)">[</span><span style=3D"color:rgb(181,206,168)">0</span><span st= yle=3D"color:rgb(220,220,170)">]</span><span style=3D"color:rgb(220,220,170= )">-></span><span style=3D"color:rgb(220,220,170)">setChartTypes</span><= span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(78,2= 01,176)">std</span><span style=3D"color:rgb(204,204,204)">::</span><span st= yle=3D"color:rgb(78,201,176)">vector</span><span style=3D"color:rgb(204,204= ,204)">{ </span><span style=3D"color:rgb(156,220,254)">xCT</span><span styl= e=3D"color:rgb(204,204,204)"> });</span></div><br><div><span style=3D"color= :rgb(106,153,85)"> // Step 3: Set Data Series and Perform Calculatio= ns if Series is Available</span></div><div><span style=3D"color:rgb(204,204= ,204)"> </span><span style=3D"color:rgb(197,134,192)">if</span><span= style=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(212,212= ,212)">!</span><span style=3D"color:rgb(156,220,254)">aSeriesSeq</span><spa= n style=3D"color:rgb(204,204,204)">.</span><span style=3D"color:rgb(220,220= ,170)">empty</span><span style=3D"color:rgb(204,204,204)">())</span></div><= div><span style=3D"color:rgb(204,204,204)"> {</span></div><div><span= style=3D"color:rgb(106,153,85)"> // For histogram, we typically= use only the first series</span></div><div><span style=3D"color:rgb(204,20= 4,204)"> </span><span style=3D"color:rgb(156,220,254)">xCT</span= ><span style=3D"color:rgb(220,220,170)">-></span><span style=3D"color:rg= b(220,220,170)">setDataSeries</span><span style=3D"color:rgb(204,204,204)">= (</span><span style=3D"color:rgb(156,220,254)">aSeriesSeq</span><span style= =3D"color:rgb(220,220,170)">[</span><span style=3D"color:rgb(181,206,168)">= 0</span><span style=3D"color:rgb(220,220,170)">]</span><span style=3D"color= :rgb(204,204,204)">);</span></div><br><div><span style=3D"color:rgb(106,153= ,85)"> // Call createCalculatedDataSeries to process the data</s= pan></div><div><span style=3D"color:rgb(204,204,204)"> </span><s= pan style=3D"color:rgb(86,156,214)">static_cast</span><span style=3D"color:= rgb(212,212,212)"><</span><span style=3D"color:rgb(78,201,176)">Histogra= mChartType</span><span style=3D"color:rgb(212,212,212)">*></span><span s= tyle=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(156,220,25= 4)">xCT</span><span style=3D"color:rgb(204,204,204)">.</span><span style=3D= "color:rgb(220,220,170)">get</span><span style=3D"color:rgb(204,204,204)">(= ))-></span><span style=3D"color:rgb(220,220,170)">createCalculatedDataSe= ries</span><span style=3D"color:rgb(204,204,204)">();</span></div><div><spa= n style=3D"color:rgb(204,204,204)"> }</span></div><div><span style= =3D"color:rgb(204,204,204)"> }</span></div><div><span style=3D"color:rgb= (204,204,204)"> </span><span style=3D"color:rgb(197,134,192)">catch</spa= n><span style=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(= 86,156,214)">const</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(78,201,176)">uno</span><span style=3D"color:rgb(204,2= 04,204)">::</span><span style=3D"color:rgb(78,201,176)">Exception</span><sp= an style=3D"color:rgb(212,212,212)">&</span><span style=3D"color:rgb(20= 4,204,204)">)</span></div><div><span style=3D"color:rgb(204,204,204)"> {= </span></div><div><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(86,156,214)">DBG_UNHANDLED_EXCEPTION</span><span styl= e=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(206,145,120)"= >"chart2"</span><span style=3D"color:rgb(204,204,204)">);</span><= /div><div><span style=3D"color:rgb(204,204,204)"> }</span></div><div><sp= an style=3D"color:rgb(204,204,204)">}</span></div><div><span style=3D"color= :rgb(204,204,204)"><br></span></div></div></div><div class=3D"gmail_default= " style=3D"font-family:comic sans ms,sans-serif"><br></div><div class=3D"gm= ail_default" style=3D"font-family:comic sans ms,sans-serif"><br></div><div = class=3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif">Howe= ver, I am unsure if this is the correct way of calling the <b>createCalcula= tedDataSeries()</b> in the model file -<br></div><div class=3D"gmail_defaul= t" style=3D"font-family:comic sans ms,sans-serif"><b>chart2/source/model/te= mplate/HistogramChartType.cxx</b></div><div class=3D"gmail_default" style= =3D"font-family:comic sans ms,sans-serif">So that, this will eventually cal= l the <b>chart2/source/model/template/HistogramCalculator.cxx</b> to calcul= ate the binning.</div><div class=3D"gmail_default" style=3D"font-family:com= ic sans ms,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font= -family:comic sans ms,sans-serif"><br></div><div class=3D"gmail_default" st= yle=3D"font-family:comic sans ms,sans-serif">tho in the model <b>chart2/sou= rce/model/template/HistogramChartType.cxx</b></div><div class=3D"gmail_defa= ult" style=3D"font-family:comic sans ms,sans-serif"><br></div><div class=3D= "gmail_default" style=3D"font-family:comic sans ms,sans-serif">I have also = added the -</div><div class=3D"gmail_default" style=3D"font-family:comic sa= ns ms,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font-fami= ly:comic sans ms,sans-serif"><div style=3D"color:rgb(204,204,204);backgroun= d-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospa= ce",monospace;font-weight:normal;font-size:14px;line-height:19px;white= -space:pre"><div><span style=3D"color:rgb(204,204,204)"> </span><span st= yle=3D"color:rgb(78,201,176)">sal_Int8</span><span style=3D"color:rgb(204,2= 04,204)"> </span><span style=3D"color:rgb(220,220,170)">getFrequencyType</s= pan><span style=3D"color:rgb(204,204,204)">() </span><span style=3D"color:r= gb(86,156,214)">const</span><span style=3D"color:rgb(204,204,204)"> { </spa= n><span style=3D"color:rgb(197,134,192)">return</span><span style=3D"color:= rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">m_nFrequen= cyType</span><span style=3D"color:rgb(204,204,204)">; }</span></div><div><s= pan style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(78= ,201,176)">sal_Int32</span><span style=3D"color:rgb(204,204,204)"> </span><= span style=3D"color:rgb(220,220,170)">getBinCount</span><span style=3D"colo= r:rgb(204,204,204)">() </span><span style=3D"color:rgb(86,156,214)">const</= span><span style=3D"color:rgb(204,204,204)"> { </span><span style=3D"color:= rgb(197,134,192)">return</span><span style=3D"color:rgb(204,204,204)"> </sp= an><span style=3D"color:rgb(156,220,254)">m_nBinCount</span><span style=3D"= color:rgb(204,204,204)">; }</span></div><div><span style=3D"color:rgb(204,2= 04,204)"> </span><span style=3D"color:rgb(86,156,214)">double</span><spa= n style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(220,220= ,170)">getBinWidth</span><span style=3D"color:rgb(204,204,204)">() </span><= span style=3D"color:rgb(86,156,214)">const</span><span style=3D"color:rgb(2= 04,204,204)"> { </span><span style=3D"color:rgb(197,134,192)">return</span>= <span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156= ,220,254)">m_fBinWidth</span><span style=3D"color:rgb(204,204,204)">; }</sp= an></div><div><span style=3D"color:rgb(204,204,204)"> </span><span style= =3D"color:rgb(86,156,214)">bool</span><span style=3D"color:rgb(204,204,204)= "> </span><span style=3D"color:rgb(220,220,170)">isOverflowBinActive</span>= <span style=3D"color:rgb(204,204,204)">() </span><span style=3D"color:rgb(8= 6,156,214)">const</span><span style=3D"color:rgb(204,204,204)"> { </span><s= pan style=3D"color:rgb(197,134,192)">return</span><span style=3D"color:rgb(= 204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">m_bOverflowBin= Active</span><span style=3D"color:rgb(204,204,204)">; }</span></div><div><s= pan style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(86= ,156,214)">bool</span><span style=3D"color:rgb(204,204,204)"> </span><span = style=3D"color:rgb(220,220,170)">isUnderflowBinActive</span><span style=3D"= color:rgb(204,204,204)">() </span><span style=3D"color:rgb(86,156,214)">con= st</span><span style=3D"color:rgb(204,204,204)"> { </span><span style=3D"co= lor:rgb(197,134,192)">return</span><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(156,220,254)">m_bUnderflowBinActive</span><= span style=3D"color:rgb(204,204,204)">; }</span></div><div><span style=3D"c= olor:rgb(204,204,204)"> </span><span style=3D"color:rgb(86,156,214)">dou= ble</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"col= or:rgb(220,220,170)">getOverflowValue</span><span style=3D"color:rgb(204,20= 4,204)">() </span><span style=3D"color:rgb(86,156,214)">const</span><span s= tyle=3D"color:rgb(204,204,204)"> { </span><span style=3D"color:rgb(197,134,= 192)">return</span><span style=3D"color:rgb(204,204,204)"> </span><span sty= le=3D"color:rgb(156,220,254)">m_fOverflowValue</span><span style=3D"color:r= gb(204,204,204)">; }</span></div><div><span style=3D"color:rgb(204,204,204)= "> </span><span style=3D"color:rgb(86,156,214)">double</span><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(220,220,170)">= getUnderflowValue</span><span style=3D"color:rgb(204,204,204)">() </span><s= pan style=3D"color:rgb(86,156,214)">const</span><span style=3D"color:rgb(20= 4,204,204)"> { </span><span style=3D"color:rgb(197,134,192)">return</span><= span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,= 220,254)">m_fUnderflowValue</span><span style=3D"color:rgb(204,204,204)">; = }</span></div><br><div><span style=3D"color:rgb(204,204,204)"> </span><s= pan style=3D"color:rgb(86,156,214)">void</span><span style=3D"color:rgb(204= ,204,204)"> </span><span style=3D"color:rgb(220,220,170)">setFrequencyType<= /span><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:r= gb(78,201,176)">sal_Int8</span><span style=3D"color:rgb(204,204,204)"> </sp= an><span style=3D"color:rgb(156,220,254)">nFrequencyType</span><span style= =3D"color:rgb(204,204,204)">);</span></div><div><span style=3D"color:rgb(20= 4,204,204)"> </span><span style=3D"color:rgb(86,156,214)">void</span><sp= an style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(220,22= 0,170)">setBinCount</span><span style=3D"color:rgb(204,204,204)">(</span><s= pan style=3D"color:rgb(78,201,176)">sal_Int32</span><span style=3D"color:rg= b(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">nBinCount</s= pan><span style=3D"color:rgb(204,204,204)">);</span></div><div><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(86,156,214)= ">void</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"= color:rgb(220,220,170)">setBinWidth</span><span style=3D"color:rgb(204,204,= 204)">(</span><span style=3D"color:rgb(86,156,214)">double</span><span styl= e=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)"= >fBinWidth</span><span style=3D"color:rgb(204,204,204)">);</span></div><div= ><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb= (86,156,214)">void</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(220,220,170)">setOverflowBinActive</span><span style= =3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(86,156,214)">b= ool</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"col= or:rgb(156,220,254)">bActive</span><span style=3D"color:rgb(204,204,204)">)= ;</span></div><div><span style=3D"color:rgb(204,204,204)"> </span><span = style=3D"color:rgb(86,156,214)">void</span><span style=3D"color:rgb(204,204= ,204)"> </span><span style=3D"color:rgb(220,220,170)">setUnderflowBinActive= </span><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:= rgb(86,156,214)">bool</span><span style=3D"color:rgb(204,204,204)"> </span>= <span style=3D"color:rgb(156,220,254)">bActive</span><span style=3D"color:r= gb(204,204,204)">);</span></div><div><span style=3D"color:rgb(204,204,204)"= > </span><span style=3D"color:rgb(86,156,214)">void</span><span style=3D= "color:rgb(204,204,204)"> </span><span style=3D"color:rgb(220,220,170)">set= OverflowBinValue</span><span style=3D"color:rgb(204,204,204)">(</span><span= style=3D"color:rgb(86,156,214)">double</span><span style=3D"color:rgb(204,= 204,204)"> </span><span style=3D"color:rgb(156,220,254)">fValue</span><span= style=3D"color:rgb(204,204,204)">);</span></div><div><span style=3D"color:= rgb(204,204,204)"> </span><span style=3D"color:rgb(86,156,214)">void</sp= an><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(= 220,220,170)">setUnderflowBinValue</span><span style=3D"color:rgb(204,204,2= 04)">(</span><span style=3D"color:rgb(86,156,214)">double</span><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">= fValue</span><span style=3D"color:rgb(204,204,204)">);</span></div><br><div= ><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb= (86,156,214)">void</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(220,220,170)">syncWithTemplate</span><span style=3D"c= olor:rgb(204,204,204)">(</span><span style=3D"color:rgb(86,156,214)">const<= /span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:r= gb(78,201,176)">css</span><span style=3D"color:rgb(204,204,204)">::</span><= span style=3D"color:rgb(78,201,176)">uno</span><span style=3D"color:rgb(204= ,204,204)">::</span><span style=3D"color:rgb(78,201,176)">Reference</span><= span style=3D"color:rgb(204,204,204)"><</span><span style=3D"color:rgb(7= 8,201,176)">css</span><span style=3D"color:rgb(204,204,204)">::</span><span= style=3D"color:rgb(78,201,176)">beans</span><span style=3D"color:rgb(204,2= 04,204)">::</span><span style=3D"color:rgb(78,201,176)">XPropertySet</span>= <span style=3D"color:rgb(204,204,204)">></span><span style=3D"color:rgb(= 86,156,214)">&</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(156,220,254)">xTemplateProps</span><span style=3D"col= or:rgb(204,204,204)">);</span></div></div></div><div class=3D"gmail_default= " style=3D"font-family:comic sans ms,sans-serif"><br></div><div class=3D"gm= ail_default" style=3D"font-family:comic sans ms,sans-serif">But I am not su= re about these getter and setter functions.<br></div><div class=3D"gmail_de= fault" style=3D"font-family:comic sans ms,sans-serif"><br></div><div class= =3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif">I have no= t modified the <b>chart2/source/model/template/HistogramCalculator.cxx</b> = to use these new parameters set in the UI</div><div class=3D"gmail_default"= style=3D"font-family:comic sans ms,sans-serif">as I am unsure of what I ha= ve done to have access to the ui parameters.<br></div><div class=3D"gmail_d= efault" style=3D"font-family:comic sans ms,sans-serif"><br></div><div class= =3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif">I also tr= ied to access them in the view too -</div><div class=3D"gmail_default" styl= e=3D"font-family:comic sans ms,sans-serif"><br></div><div class=3D"gmail_de= fault" style=3D"font-family:comic sans ms,sans-serif"><div style=3D"color:r= gb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans= Mono","monospace",monospace;font-weight:normal;font-size:14= px;line-height:19px;white-space:pre"><div><span style=3D"color:rgb(78,201,1= 76)">HistogramChart</span><span style=3D"color:rgb(204,204,204)">::</span><= span style=3D"color:rgb(220,220,170)">HistogramChart</span><span style=3D"c= olor:rgb(204,204,204)">(</span><span style=3D"color:rgb(86,156,214)">const<= /span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:r= gb(78,201,176)">rtl</span><span style=3D"color:rgb(204,204,204)">::</span><= span style=3D"color:rgb(78,201,176)">Reference</span><span style=3D"color:r= gb(212,212,212)"><</span><span style=3D"color:rgb(78,201,176)">ChartType= </span><span style=3D"color:rgb(212,212,212)">>&</span><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">= xChartTypeModel</span><span style=3D"color:rgb(204,204,204)">,</span></div>= <div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(78,201,176)">sal_Int32</span><span style=3D= "color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">nDi= mensionCount</span><span style=3D"color:rgb(204,204,204)">)</span></div><di= v><span style=3D"color:rgb(204,204,204)"> : </span><span style=3D"color:= rgb(78,201,176)">BarChart</span><span style=3D"color:rgb(204,204,204)">(</s= pan><span style=3D"color:rgb(156,220,254)">xChartTypeModel</span><span styl= e=3D"color:rgb(204,204,204)">, </span><span style=3D"color:rgb(156,220,254)= ">nDimensionCount</span><span style=3D"color:rgb(204,204,204)">)</span></di= v><div><span style=3D"color:rgb(204,204,204)"> , </span><span style=3D"c= olor:rgb(156,220,254)">m_nBinCount</span><span style=3D"color:rgb(204,204,2= 04)">(</span><span style=3D"color:rgb(181,206,168)">1</span><span style=3D"= color:rgb(204,204,204)">)</span></div><div><span style=3D"color:rgb(204,204= ,204)"> , </span><span style=3D"color:rgb(156,220,254)">m_fBinWidth</spa= n><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(1= 81,206,168)">1.0</span><span style=3D"color:rgb(204,204,204)">)</span></div= ><div><span style=3D"color:rgb(204,204,204)"> , </span><span style=3D"co= lor:rgb(156,220,254)">m_nFrequencyType</span><span style=3D"color:rgb(204,2= 04,204)">(</span><span style=3D"color:rgb(181,206,168)">0</span><span style= =3D"color:rgb(204,204,204)">)</span></div><div><span style=3D"color:rgb(204= ,204,204)"> , </span><span style=3D"color:rgb(156,220,254)">m_bOverflowB= inActive</span><span style=3D"color:rgb(204,204,204)">(</span><span style= =3D"color:rgb(86,156,214)">false</span><span style=3D"color:rgb(204,204,204= )">)</span></div><div><span style=3D"color:rgb(204,204,204)"> , </span><= span style=3D"color:rgb(156,220,254)">m_bUnderflowBinActive</span><span sty= le=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(86,156,214)"= >false</span><span style=3D"color:rgb(204,204,204)">)</span></div><div><spa= n style=3D"color:rgb(204,204,204)">{</span></div><div><span style=3D"color:= rgb(106,153,85)"> // We only support 2 dimensional histogram charts</spa= n></div><div><span style=3D"color:rgb(204,204,204)"> </span><span style= =3D"color:rgb(86,156,214)">assert</span><span style=3D"color:rgb(204,204,20= 4)">(</span><span style=3D"color:rgb(156,220,254)">nDimensionCount</span><s= pan style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(212,2= 12,212)">=3D=3D</span><span style=3D"color:rgb(204,204,204)"> </span><span = style=3D"color:rgb(181,206,168)">2</span><span style=3D"color:rgb(204,204,2= 04)"> </span><span style=3D"color:rgb(212,212,212)">&&</span><span = style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(206,145,1= 20)">"HistogramChart only supports 2D charts"</span><span style= =3D"color:rgb(204,204,204)">);</span></div><br><div><span style=3D"color:rg= b(106,153,85)"> // Runtime check for all builds</span></div><div><span s= tyle=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(197,134= ,192)">if</span><span style=3D"color:rgb(204,204,204)"> (</span><span style= =3D"color:rgb(156,220,254)">nDimensionCount</span><span style=3D"color:rgb(= 204,204,204)"> </span><span style=3D"color:rgb(212,212,212)">!=3D</span><sp= an style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(181,20= 6,168)">2</span><span style=3D"color:rgb(204,204,204)">)</span></div><div><= span style=3D"color:rgb(204,204,204)"> {</span></div><div><span style=3D= "color:rgb(106,153,85)"> // Log a warning or throw an exception if a= ppropriate</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(86,156,214)">SAL_WARN</span><span style=3D"= color:rgb(204,204,204)">(</span><span style=3D"color:rgb(206,145,120)">&quo= t;chart2"</span><span style=3D"color:rgb(204,204,204)">, </span><span = style=3D"color:rgb(206,145,120)">"HistogramChart created with invalid = dimension count. Forcing 2D."</span><span style=3D"color:rgb(204,204,2= 04)">);</span></div><div><span style=3D"color:rgb(204,204,204)"> }</span= ></div><br><div><span style=3D"color:rgb(204,204,204)"> </span><span sty= le=3D"color:rgb(78,201,176)">PlotterBase</span><span style=3D"color:rgb(204= ,204,204)">::</span><span style=3D"color:rgb(156,220,254)">m_pPosHelper</sp= an><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(= 212,212,212)">=3D</span><span style=3D"color:rgb(204,204,204)"> </span><spa= n style=3D"color:rgb(212,212,212)">&</span><span style=3D"color:rgb(156= ,220,254)">m_aMainPosHelper</span><span style=3D"color:rgb(204,204,204)">;<= /span></div><div><span style=3D"color:rgb(204,204,204)"> </span><span st= yle=3D"color:rgb(78,201,176)">VSeriesPlotter</span><span style=3D"color:rgb= (204,204,204)">::</span><span style=3D"color:rgb(156,220,254)">m_pMainPosHe= lper</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"co= lor:rgb(212,212,212)">=3D</span><span style=3D"color:rgb(204,204,204)"> </s= pan><span style=3D"color:rgb(212,212,212)">&</span><span style=3D"color= :rgb(156,220,254)">m_aMainPosHelper</span><span style=3D"color:rgb(204,204,= 204)">;</span></div><br><div><span style=3D"color:rgb(204,204,204)"> </s= pan><span style=3D"color:rgb(197,134,192)">try</span></div><div><span style= =3D"color:rgb(204,204,204)"> {</span></div><div><span style=3D"color:rgb= (204,204,204)"> </span><span style=3D"color:rgb(197,134,192)">if</sp= an><span style=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb= (156,220,254)">m_xChartTypeModel</span><span style=3D"color:rgb(204,204,204= )">.</span><span style=3D"color:rgb(220,220,170)">is</span><span style=3D"c= olor:rgb(204,204,204)">())</span></div><div><span style=3D"color:rgb(204,20= 4,204)"> </span><span style=3D"color:rgb(156,220,254)">m_xChartT= ypeModel</span><span style=3D"color:rgb(220,220,170)">-></span><span sty= le=3D"color:rgb(220,220,170)">getPropertyValue</span><span style=3D"color:r= gb(204,204,204)">(</span><span style=3D"color:rgb(181,206,168)">u"Gapw= idthSequence"</span><span style=3D"color:rgb(181,206,168)">_ustr</span= ><span style=3D"color:rgb(204,204,204)">) </span><span style=3D"color:rgb(2= 20,220,170)">>>=3D</span><span style=3D"color:rgb(204,204,204)"> </sp= an><span style=3D"color:rgb(156,220,254)">m_aGapwidthSequence</span><span s= tyle=3D"color:rgb(204,204,204)">;</span></div><div><span style=3D"color:rgb= (204,204,204)"> }</span></div><div><span style=3D"color:rgb(204,204,204)= "> </span><span style=3D"color:rgb(197,134,192)">catch</span><span style= =3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(86,156,214)">= const</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"c= olor:rgb(78,201,176)">uno</span><span style=3D"color:rgb(204,204,204)">::</= span><span style=3D"color:rgb(78,201,176)">Exception</span><span style=3D"c= olor:rgb(212,212,212)">&</span><span style=3D"color:rgb(204,204,204)">)= </span></div><div><span style=3D"color:rgb(204,204,204)"> {</span></div>= <div><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"c= olor:rgb(86,156,214)">TOOLS_WARN_EXCEPTION</span><span style=3D"color:rgb(2= 04,204,204)">(</span><span style=3D"color:rgb(206,145,120)">"chart2&qu= ot;</span><span style=3D"color:rgb(204,204,204)">, </span><span style=3D"co= lor:rgb(206,145,120)">""</span><span style=3D"color:rgb(204,204,2= 04)">);</span></div><div><span style=3D"color:rgb(204,204,204)"> }</span= ></div><br><div><span style=3D"color:rgb(204,204,204)"> </span><span sty= le=3D"color:rgb(197,134,192)">try</span></div><div><span style=3D"color:rgb= (204,204,204)"> {</span></div><div><span style=3D"color:rgb(204,204,204)= "> </span><span style=3D"color:rgb(197,134,192)">if</span><span styl= e=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(156,220,254)= ">m_xChartTypeModel</span><span style=3D"color:rgb(204,204,204)">.</span><s= pan style=3D"color:rgb(220,220,170)">is</span><span style=3D"color:rgb(204,= 204,204)">())</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(156,220,254)">m_xChartTypeModel</spa= n><span style=3D"color:rgb(220,220,170)">-></span><span style=3D"color:r= gb(220,220,170)">getPropertyValue</span><span style=3D"color:rgb(204,204,20= 4)">(</span><span style=3D"color:rgb(181,206,168)">u"BinCount"</s= pan><span style=3D"color:rgb(181,206,168)">_ustr</span><span style=3D"color= :rgb(204,204,204)">) </span><span style=3D"color:rgb(220,220,170)">>>= =3D</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"col= or:rgb(156,220,254)">m_nBinCount</span><span style=3D"color:rgb(204,204,204= )">;</span></div><div><span style=3D"color:rgb(204,204,204)"> }</span></= div><div><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"c= olor:rgb(197,134,192)">catch</span><span style=3D"color:rgb(204,204,204)"> = (</span><span style=3D"color:rgb(86,156,214)">const</span><span style=3D"co= lor:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201,176)">uno</sp= an><span style=3D"color:rgb(204,204,204)">::</span><span style=3D"color:rgb= (78,201,176)">Exception</span><span style=3D"color:rgb(212,212,212)">&<= /span><span style=3D"color:rgb(204,204,204)">)</span></div><div><span style= =3D"color:rgb(204,204,204)"> {</span></div><div><span style=3D"color:rgb= (204,204,204)"> </span><span style=3D"color:rgb(86,156,214)">TOOLS_W= ARN_EXCEPTION</span><span style=3D"color:rgb(204,204,204)">(</span><span st= yle=3D"color:rgb(206,145,120)">"chart2"</span><span style=3D"colo= r:rgb(204,204,204)">, </span><span style=3D"color:rgb(206,145,120)">"&= quot;</span><span style=3D"color:rgb(204,204,204)">);</span></div><div><spa= n style=3D"color:rgb(204,204,204)"> }</span></div><br><div><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(197,134,192= )">try</span></div><div><span style=3D"color:rgb(204,204,204)"> {</span>= </div><div><span style=3D"color:rgb(204,204,204)"> </span><span styl= e=3D"color:rgb(197,134,192)">if</span><span style=3D"color:rgb(204,204,204)= "> (</span><span style=3D"color:rgb(156,220,254)">m_xChartTypeModel</span><= span style=3D"color:rgb(204,204,204)">.</span><span style=3D"color:rgb(220,= 220,170)">is</span><span style=3D"color:rgb(204,204,204)">())</span></div><= div><span style=3D"color:rgb(204,204,204)"> </span><span style= =3D"color:rgb(156,220,254)">m_xChartTypeModel</span><span style=3D"color:rg= b(220,220,170)">-></span><span style=3D"color:rgb(220,220,170)">getPrope= rtyValue</span><span style=3D"color:rgb(204,204,204)">(</span><span style= =3D"color:rgb(181,206,168)">u"BinWidth"</span><span style=3D"colo= r:rgb(181,206,168)">_ustr</span><span style=3D"color:rgb(204,204,204)">) </= span><span style=3D"color:rgb(220,220,170)">>>=3D</span><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220,254)">= m_fBinWidth</span><span style=3D"color:rgb(204,204,204)">;</span></div><div= ><span style=3D"color:rgb(204,204,204)"> }</span></div><div><span style= =3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(197,134,192= )">catch</span><span style=3D"color:rgb(204,204,204)"> (</span><span style= =3D"color:rgb(86,156,214)">const</span><span style=3D"color:rgb(204,204,204= )"> </span><span style=3D"color:rgb(78,201,176)">uno</span><span style=3D"c= olor:rgb(204,204,204)">::</span><span style=3D"color:rgb(78,201,176)">Excep= tion</span><span style=3D"color:rgb(212,212,212)">&</span><span style= =3D"color:rgb(204,204,204)">)</span></div><div><span style=3D"color:rgb(204= ,204,204)"> {</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(86,156,214)">TOOLS_WARN_EXCEPTION</sp= an><span style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(= 206,145,120)">"chart2"</span><span style=3D"color:rgb(204,204,204= )">, </span><span style=3D"color:rgb(206,145,120)">""</span><span= style=3D"color:rgb(204,204,204)">);</span></div><div><span style=3D"color:= rgb(204,204,204)"> }</span></div><br><div><span style=3D"color:rgb(204,2= 04,204)"> </span><span style=3D"color:rgb(197,134,192)">try</span></div>= <div><span style=3D"color:rgb(204,204,204)"> {</span></div><div><span st= yle=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(197,= 134,192)">if</span><span style=3D"color:rgb(204,204,204)"> (</span><span st= yle=3D"color:rgb(156,220,254)">m_xChartTypeModel</span><span style=3D"color= :rgb(204,204,204)">.</span><span style=3D"color:rgb(220,220,170)">is</span>= <span style=3D"color:rgb(204,204,204)">())</span></div><div><span style=3D"= color:rgb(204,204,204)"> </span><span style=3D"color:rgb(156,220= ,254)">m_xChartTypeModel</span><span style=3D"color:rgb(220,220,170)">->= </span><span style=3D"color:rgb(220,220,170)">getPropertyValue</span><span = style=3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(181,206,1= 68)">u"FrequencyType"</span><span style=3D"color:rgb(181,206,168)= ">_ustr</span><span style=3D"color:rgb(204,204,204)">) </span><span style= =3D"color:rgb(220,220,170)">>>=3D</span><span style=3D"color:rgb(204,= 204,204)"> </span><span style=3D"color:rgb(156,220,254)">m_nFrequencyType</= span><span style=3D"color:rgb(204,204,204)">;</span></div><div><span style= =3D"color:rgb(204,204,204)"> }</span></div><div><span style=3D"color:rgb= (204,204,204)"> </span><span style=3D"color:rgb(197,134,192)">catch</spa= n><span style=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(= 86,156,214)">const</span><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(78,201,176)">uno</span><span style=3D"color:rgb(204,2= 04,204)">::</span><span style=3D"color:rgb(78,201,176)">Exception</span><sp= an style=3D"color:rgb(212,212,212)">&</span><span style=3D"color:rgb(20= 4,204,204)">)</span></div><div><span style=3D"color:rgb(204,204,204)"> {= </span></div><div><span style=3D"color:rgb(204,204,204)"> </span><sp= an style=3D"color:rgb(86,156,214)">TOOLS_WARN_EXCEPTION</span><span style= =3D"color:rgb(204,204,204)">(</span><span style=3D"color:rgb(206,145,120)">= "chart2"</span><span style=3D"color:rgb(204,204,204)">, </span><s= pan style=3D"color:rgb(206,145,120)">""</span><span style=3D"colo= r:rgb(204,204,204)">);</span></div><div><span style=3D"color:rgb(204,204,20= 4)"> }</span></div><br><div><span style=3D"color:rgb(204,204,204)"> <= /span><span style=3D"color:rgb(197,134,192)">try</span></div><div><span sty= le=3D"color:rgb(204,204,204)"> {</span></div><div><span style=3D"color:r= gb(204,204,204)"> </span><span style=3D"color:rgb(197,134,192)">if</= span><span style=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:r= gb(156,220,254)">m_xChartTypeModel</span><span style=3D"color:rgb(204,204,2= 04)">.</span><span style=3D"color:rgb(220,220,170)">is</span><span style=3D= "color:rgb(204,204,204)">())</span></div><div><span style=3D"color:rgb(204,= 204,204)"> </span><span style=3D"color:rgb(156,220,254)">m_xChar= tTypeModel</span><span style=3D"color:rgb(220,220,170)">-></span><span s= tyle=3D"color:rgb(220,220,170)">getPropertyValue</span><span style=3D"color= :rgb(204,204,204)">(</span><span style=3D"color:rgb(181,206,168)">u"Ov= erflowBin"</span><span style=3D"color:rgb(181,206,168)">_ustr</span><s= pan style=3D"color:rgb(204,204,204)">) </span><span style=3D"color:rgb(220,= 220,170)">>>=3D</span><span style=3D"color:rgb(204,204,204)"> </span>= <span style=3D"color:rgb(156,220,254)">m_bOverflowBinActive</span><span sty= le=3D"color:rgb(204,204,204)">;</span></div><div><span style=3D"color:rgb(2= 04,204,204)"> }</span></div><div><span style=3D"color:rgb(204,204,204)">= </span><span style=3D"color:rgb(197,134,192)">catch</span><span style= =3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(86,156,214)">= const</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"c= olor:rgb(78,201,176)">uno</span><span style=3D"color:rgb(204,204,204)">::</= span><span style=3D"color:rgb(78,201,176)">Exception</span><span style=3D"c= olor:rgb(212,212,212)">&</span><span style=3D"color:rgb(204,204,204)">)= </span></div><div><span style=3D"color:rgb(204,204,204)"> {</span></div>= <div><span style=3D"color:rgb(204,204,204)"> </span><span style=3D"c= olor:rgb(86,156,214)">TOOLS_WARN_EXCEPTION</span><span style=3D"color:rgb(2= 04,204,204)">(</span><span style=3D"color:rgb(206,145,120)">"chart2&qu= ot;</span><span style=3D"color:rgb(204,204,204)">, </span><span style=3D"co= lor:rgb(206,145,120)">""</span><span style=3D"color:rgb(204,204,2= 04)">);</span></div><div><span style=3D"color:rgb(204,204,204)"> }</span= ></div><br><div><span style=3D"color:rgb(204,204,204)"> </span><span sty= le=3D"color:rgb(197,134,192)">try</span></div><div><span style=3D"color:rgb= (204,204,204)"> {</span></div><div><span style=3D"color:rgb(204,204,204)= "> </span><span style=3D"color:rgb(197,134,192)">if</span><span styl= e=3D"color:rgb(204,204,204)"> (</span><span style=3D"color:rgb(156,220,254)= ">m_xChartTypeModel</span><span style=3D"color:rgb(204,204,204)">.</span><s= pan style=3D"color:rgb(220,220,170)">is</span><span style=3D"color:rgb(204,= 204,204)">())</span></div><div><span style=3D"color:rgb(204,204,204)"> = </span><span style=3D"color:rgb(156,220,254)">m_xChartTypeModel</spa= n><span style=3D"color:rgb(220,220,170)">-></span><span style=3D"color:r= gb(220,220,170)">getPropertyValue</span><span style=3D"color:rgb(204,204,20= 4)">(</span><span style=3D"color:rgb(181,206,168)">u"UnderflowBin"= ;</span><span style=3D"color:rgb(181,206,168)">_ustr</span><span style=3D"c= olor:rgb(204,204,204)">) </span><span style=3D"color:rgb(220,220,170)">>= >=3D</span><span style=3D"color:rgb(204,204,204)"> </span><span style=3D= "color:rgb(156,220,254)">m_bUnderflowBinActive</span><span style=3D"color:r= gb(204,204,204)">;</span></div><div><span style=3D"color:rgb(204,204,204)">= }</span></div><div><span style=3D"color:rgb(204,204,204)"> </span><s= pan style=3D"color:rgb(197,134,192)">catch</span><span style=3D"color:rgb(2= 04,204,204)"> (</span><span style=3D"color:rgb(86,156,214)">const</span><sp= an style=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(78,201= ,176)">uno</span><span style=3D"color:rgb(204,204,204)">::</span><span styl= e=3D"color:rgb(78,201,176)">Exception</span><span style=3D"color:rgb(212,21= 2,212)">&</span><span style=3D"color:rgb(204,204,204)">)</span></div><d= iv><span style=3D"color:rgb(204,204,204)"> {</span></div><div><span styl= e=3D"color:rgb(204,204,204)"> </span><span style=3D"color:rgb(86,156= ,214)">TOOLS_WARN_EXCEPTION</span><span style=3D"color:rgb(204,204,204)">(<= /span><span style=3D"color:rgb(206,145,120)">"chart2"</span><span= style=3D"color:rgb(204,204,204)">, </span><span style=3D"color:rgb(206,145= ,120)">""</span><span style=3D"color:rgb(204,204,204)">);</span><= /div><div><span style=3D"color:rgb(204,204,204)"> }</span></div><div><sp= an style=3D"color:rgb(204,204,204)">}</span></div><br><br></div></div><div = class=3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif"><br>= </div><div class=3D"gmail_default" style=3D"font-family:comic sans ms,sans-= serif"><br></div><div class=3D"gmail_default" style=3D"font-family:comic sa= ns ms,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font-fami= ly:comic sans ms,sans-serif"><b><br></b></div><div class=3D"gmail_default" = style=3D"font-family:comic sans ms,sans-serif"><b>But we want to do it in t= he model as per the comment(commit message) made by Toma=C5=BE in the PR - = <a href=3D"https://gerrit.libreoffice.org/c/core/+/171952">https://gerrit.l= ibreoffice.org/c/core/+/171952</a></b></div><div><br></div><div><div style= =3D"font-family:comic sans ms,sans-serif" class=3D"gmail_default"><br></div= ><br></div><div><br></div><span class=3D"gmail_signature_prefix">-- </span>= <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sign= ature"><div dir=3D"ltr"><div><span style=3D"font-family:monospace"><b>Regar= ds,</b></span></div><div><span style=3D"font-family:monospace;color:rgb(153= ,0,255)"><b>Devansh</b></span><br></div></div></div></div> --00000000000062bb1606260350a0--