<div dir="ltr"><p>Hi,</p><p>I didn't post the update for weeks 3 and 4 as I have been working on eliminating the gaps between histogram bars that were visible in week 2 on the UI. This is something I have been wrapping my head around.<span class="gmail_default" style="font-family:comic sans ms,sans-serif"></span><span class="gmail_default" style="font-family:arial,sans-serif"> I was tempted to get it done, but didn't realize it would take a while.</span><span class="gmail_default" style="font-family:arial,sans-serif"><br></span></p><p>After discussing with my mentor Tomaz,<span class="gmail_default" style="font-family:comic sans ms,sans-serif"> </span><span class="gmail_default" style="font-family:arial,sans-serif">He explained to me how the zSlot is being used, and</span> I made changes to the <code>m_aZSlots</code> variable. This variable is crucial for managing the layering of different data series along the Z-axis in our charting framework.<span class="gmail_default" style="font-family:comic sans ms,sans-serif"> </span>However, since a histogram typically deals with a single series of data to create a frequency distribution, we can simplify this by always using the zero index of m_aZSlots.</p><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(86,156,214)">void</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">HistogramChart</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(220,220,170)">adaptGapwidthForHistogram</span><span style="color:rgb(204,204,204)">()</span></div><div><span style="color:rgb(204,204,204)">{</span></div><div><span style="color:rgb(204,204,204)"> VDataSeries</span><span style="color:rgb(212,212,212)">*</span><span style="color:rgb(204,204,204)"> pFirstSeries </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">getFirstSeries</span><span style="color:rgb(204,204,204)">();</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(204,204,204)"> (</span><span style="color:rgb(212,212,212)">!</span><span style="color:rgb(204,204,204)">pFirstSeries)</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">return</span><span style="color:rgb(204,204,204)">;</span></div><br><div><span style="color:rgb(204,204,204)"> sal_Int32 nAxisIndex </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">pFirstSeries</span><span style="color:rgb(204,204,204)">-></span><span style="color:rgb(220,220,170)">getAttachedAxisIndex</span><span style="color:rgb(204,204,204)">();</span></div><div><span style="color:rgb(204,204,204)"> sal_Int32 nUseThisIndex </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> nAxisIndex;</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">if</span><span style="color:rgb(204,204,204)"> (nUseThisIndex </span><span style="color:rgb(212,212,212)"><</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(212,212,212)">||</span><span style="color:rgb(204,204,204)"> nUseThisIndex </span><span style="color:rgb(212,212,212)">>=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">m_aGapwidthSequence</span><span style="color:rgb(204,204,204)">.</span><span style="color:rgb(220,220,170)">getLength</span><span style="color:rgb(204,204,204)">())</span></div><div><span style="color:rgb(204,204,204)"> nUseThisIndex </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(204,204,204)">;</span></div><br><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(86,156,214)">auto</span><span style="color:rgb(204,204,204)"> aGapwidthSequenceRange </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">asNonConstRange</span><span style="color:rgb(204,204,204)">(m_aGapwidthSequence);</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">for</span><span style="color:rgb(204,204,204)"> (sal_Int32 nN </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(204,204,204)">; nN </span><span style="color:rgb(212,212,212)"><</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">m_aGapwidthSequence</span><span style="color:rgb(204,204,204)">.</span><span style="color:rgb(220,220,170)">getLength</span><span style="color:rgb(204,204,204)">(); nN</span><span style="color:rgb(212,212,212)">++</span><span style="color:rgb(204,204,204)">)</span></div><div><span style="color:rgb(204,204,204)"> {</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">aGapwidthSequenceRange</span><span style="color:rgb(204,204,204)">[nN] </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(204,204,204)">;</span><span style="color:rgb(106,153,85)"> // Set gap width to 0</span></div><div><span style="color:rgb(204,204,204)"> }</span></div><div><span style="color:rgb(204,204,204)">}</span></div></div></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif">This is what I tried to add for the Gap based on the logic present in the BarChart.cxx<br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif">Now, what he also helped me to understand what I should be focusing on first is to figure out the way how the X and Y axis can be changed to mimic the Bins and Frequency. Which I am working on.<br><br><br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif">So, for these 2 weeks, I am thinking a way to make the X and Y axis working for the Histogram.</span><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><table cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ"><td class="gmail-gF gmail-gK"><table cellpadding="0" class="gmail-cf gmail-ix"><tbody><tr><td class="gmail-c2"><blockquote class="gmail-iw gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><span class="gmail-qu" role="gridcell" tabindex="-1"><span name="Devansh Varshney" class="gmail-gD"><span><span style="font-weight:normal">Devansh Varshney</span></span></span><span style="font-weight:normal"> </span><span class="gmail-cfXrwd"></span><span class="gmail-go"><span aria-hidden="true"><span style="font-weight:normal"><</span></span><span style="font-weight:normal"><a href="mailto:varshney.devansh614@gmail.com">varshney.devansh614@gmail.com</a></span><span aria-hidden="true"><span style="font-weight:normal">></span></span></span><span style="font-weight:normal"> </span></span></font></blockquote></td></tr></tbody></table></td><td class="gmail-gH gmail-bAk"><blockquote class="gmail-gK"><font size="1"><span></span><span id="gmail-:1us" class="gmail-g3" title="23 May 2024, 20:10" alt="23 May 2024, 20:10" role="gridcell" tabindex="-1">Thu, 23 May, 20:10</span></font></blockquote></td></tr></tbody></table><table cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ"><td class="gmail-gH"><blockquote><font size="1"><br></font></blockquote></td><td class="gmail-gH gmail-acX gmail-bAm" rowspan="2"><blockquote class="gmail_default" style="font-family:comic sans ms,sans-serif"><font size="1">For
this week, the columns/bars are now visible over the UI. I still have
to make proper changes to the model and controller. Now I need to make
changes to modify these changes eventually towards getting the Histogram
plot.</font></blockquote><blockquote><span class="gmail-im"><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><font size="1">Here's the link to the PR: <a href="https://gerrit.libreoffice.org/c/core/+/167068/" rel="noreferrer" target="_blank">https://gerrit.libreoffice.org/c/core/+/167068/</a></font></div></span></blockquote></td></tr></tbody></table><table cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ gmail-xD"></tr></tbody></table><table cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ gmail-xD"><td colspan="3"><table cellpadding="0" class="gmail-cf gmail-adz"><tbody><tr><td class="gmail-ady"><blockquote id="gmail-:1w6" aria-haspopup="true" class="gmail-ajy" role="button" tabindex="0" aria-label="Show details"><font size="1"><img class="gmail-ajz" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt=""></font></blockquote></td></tr></tbody></table></td></tr></tbody></table></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-family:monospace"><b>Regards,</b></span></div><div><span style="font-family:monospace;color:rgb(153,0,255)"><b>Devansh</b></span><br></div></div></div></div>