<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Hi,</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">So, the previous week I made the update regarding the chart bars not looking like the Histogram and unable to get the X and Y axis to align with the Bin and Frequency respectively. <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">This week, my mentor Tomaz asked me if there is any trouble I am experiencing. I then asked him if I am unable to get the bars aligned with how the Histogram bars seem visible. He immediately found my mistake, which was a little typo -</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"><img src="cid:ii_lxisutl61" alt="image.png" width="558" height="215"><br><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">with the small case of W for the word Width.<br><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-wrap"><div><span style="color:rgb(206,145,120)">GapwidthSequence</span></div></div></div><div><br></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">and now the chart resembles what a histogram looks like -<br><img src="cid:ii_lxit0xu03" alt="Screenshot from 2024-06-17 15-17-27.png" width="558" height="344"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">But, still the conversion of X and Y axis to the Bin and Frequency I made some changes' day before yesterday which I have stashed them<font size="1">(ATTACHED FILE)</font> as they first do not show the bars which was the main thing. Second, I think these are not the right changes which we intend to need. So, I reverted and stashed them.<br><br></div></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">What I am doing is now calculating the bins first, then aggregating data points in bin.<br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">Then drawing bars using modified doZSlot and doXSlot methods, maintaining the original structure while adapting the logic for histogram requirements. Which I did in the stash but feels like not properly.<br></div></div><div><br></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><font size="2"><span>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><br></span></font></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><font size="2"><span><br></span></font></div><br></div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_default gmail_quote"><div class="gmail-aju"><div class="gmail-aCi"><img id="gmail-:15d_2-e" name="gmail-:15d" src="https://lh3.googleusercontent.com/a/ACg8ocJR_8nhlmpyuYQ6wbzXo16snpRbQwwJHhQ1nFeM5wOmLNcqp2f0_Q=s40-p" class="gmail-ajn" style="background-color: rgb(204, 204, 204);" aria-hidden="true"></div></div><div class="gmail-gs"><div class="gmail-gE gmail-iv gmail-gt"><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"><h3 class="gmail-iw"><span class="gmail-qu" role="gridcell" tabindex="-1"><span name="Devansh Varshney" class="gmail-gD"><span>Devansh Varshney</span></span> <span class="gmail-cfXrwd"></span><span class="gmail-go"><span aria-hidden="true"><</span><a href="mailto:varshney.devansh614@gmail.com">varshney.devansh614@gmail.com</a><span aria-hidden="true">></span></span> </span></h3></td></tr></tbody></table></td><td class="gmail-gH gmail-bAk"><div class="gmail-gK"><span></span><span id="gmail-:1f9" class="gmail-g3" title="14 Jun 2024, 00:10" alt="14 Jun 2024, 00:10" role="gridcell" tabindex="-1">Fri, 14 Jun, 00:10 (3 days ago)</span></div></td></tr></tbody></table></div></div><table cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ"><td class="gmail-gH"><br></td><td class="gmail-gH gmail-acX gmail-bAm" rowspan="2"><br></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"><div class="gmail-iw gmail-ajw"><span class="gmail-hb">to <span name="libreoffice" class="gmail-g2">libreoffice</span> </span></div><div id="gmail-:1fi" aria-haspopup="true" class="gmail-ajy" role="button" tabindex="0" aria-label="Show details"><img class="gmail-ajz" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt=""></div></td></tr></tbody></table></td></tr></tbody></table></blockquote><blockquote style="font-family:comic sans ms,sans-serif" class="gmail_default"><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-wrap"><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"><tbody><tr><td><table cellpadding="0"><tbody><tr><td><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><span role="gridcell"><span name="Devansh Varshney"><span><span style="font-weight:normal">Devansh Varshney</span></span></span><span style="font-weight:normal"> </span><span></span><span><span aria-hidden="true"><span style="font-weight:normal"><</span></span><span style="font-weight:normal"><a href="mailto:varshney.devansh614@gmail.com" target="_blank">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><blockquote><font size="1"><span></span><span id="m_7071125505689505364gmail-:1us" title="23 May 2024, 20:10" alt="23 May 2024, 20:10" role="gridcell">Thu, 23 May, 20:10</span></font></blockquote></td></tr></tbody></table><table cellpadding="0"><tbody><tr><td><blockquote><font size="1"><br></font></blockquote></td><td 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><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"><tbody><tr></tr></tbody></table><table cellpadding="0"><tbody><tr><td colspan="3"><table cellpadding="0"><tbody><tr><td><blockquote id="m_7071125505689505364gmail-:1w6" aria-haspopup="true" role="button" aria-label="Show details"><font size="1"><img src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" class="gmail-CToWUd"></font></blockquote></td></tr></tbody></table></td></tr></tbody></table></div></blockquote><br></div><div><br></div><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>