1

My intention is to align the boxplot with the textual content.

Here is the page of my BOXPLOT visualization

enter image description here

The following is the html code that makes the page appear, where the visulization is represented by the id boxplot. Demo.

I can invert the visualization but I cannot align it with the textual content. I looked up the bootstrap settings and placed it in different locations, but it always ended up coming in front of the text. I am not well-versed with css styling. Can anybody help?

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script><script src="https://code.highcharts.com/modules/exporting.js"></script>

<div class="container">
    <h1>Where's the plag?</h1>
    <div class="jumbotron">
        <small>
            <p>Atom Type: paragraph </p>
            <p>Cluster Method: kmeans </p>
            <p>k: 2 </p>
            Stylistic Feature(s):

            <p>honore_r_measure </p>


        <p></p>
        </small>

         <br>
                <div id='chart' style="height: 300px; width: 20000px"></div>

                <br>

        <button type="button" class="btn btn-primary btn-sm" data-toggle="collapse" data-target="#full_table">
            Hide/Show Table
        </button>

        <div class="row collapse in" id="full_table">
            <div class="col-md-9">
                <div class="table-responsive" style="font-size:12px;">
                    <table class="table table-condensed table-scrollable table-bordered">
                        <thead>
                        <tr>
                            <th>Start Index</th>

                            <th>honore_r_measure</th>

                            <th>Suspicion Score</th>


                        </tr>
                        </thead>
                        <tbody>

                        <tr class="passage_starting_at_">
                            <td class="passage_row"> 0</td>

                            <td class="passage_row"> 2512.6585</td>



                            <td class="passage_row">0.0000</td>





                        </tr>

                        <tr class="passage_starting_at_">
                            <td class="passage_row"> 196</td>

                            <td class="passage_row"> 2115.8163</td>



                            <td class="passage_row" bgcolor=#F60C0C> 1.0000</td>





                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <div class="row">
            <br class="col-md-9">

                <div class="panel panel-default">
                    <!-- Change the id of the following div to either column or boxplot, whichever is required-->
                    <div id="boxplot" style="height: 300px; width: 750px"></div>
                    <div class="panel-heading">
                        easy_source
                    </div>
                    <div class="panel-body" id="document_content">
                        <p>



                        <div class="passage" features="&lt;p&gt;Span&lt;/p&gt;&lt;p&gt;0, 194&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;Plag. conf.&lt;/p&gt;&lt;p&gt;0.0&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;PLAG SPAN&lt;/p&gt;&lt;p&gt;No plag!&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;honore_r_measure&lt;/p&gt;&lt;p&gt;2512.6585&lt;/p&gt;&lt;hr size = &#34;10&#34;"
                             style="font-size:14px;display:inline;;color:rgb(0,0,0);" id='pass0'>
                            This is a really short source that isn't all that super exciting. It should have some nice fingerprints that hopefully match its plagiarized copy which is named easy_test.txt. Pretty cool stuff.
                        </div>



                        <br/>




                        <div class="passage" features="&lt;p&gt;Span&lt;/p&gt;&lt;p&gt;196, 379&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;Plag. conf.&lt;/p&gt;&lt;p&gt;1.0&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;PLAG SPAN&lt;/p&gt;&lt;p&gt;No plag!&lt;/p&gt;&lt;hr size = &#34;10&#34;&lt;p&gt;honore_r_measure&lt;/p&gt;&lt;p&gt;2115.8163&lt;/p&gt;&lt;hr size = &#34;10&#34;"
                             style="font-size:14px;display:inline;color:rgb(255,0,0);" id='pass1'>
                            It also has another couple of lines which are not in the test document but are also here and are very exciting. This will make jaccard similarity not quite 1.0 but probably about 0.6.
                        </div>


                        <br/>




                    </div>

                </div>

            </div>
</div>

basically, I want the diagram to be like this

enter image description here

Echchama Nayak
  • 971
  • 3
  • 23
  • 44
  • 1
    It would help us answer if we knew what specific stylesheet you're using. Also, can you tell us more about the `features` attribute you use in the `
    ` tag? Its not a valid default attribute in HTML 5.
    – ProphetofProfit Aug 05 '16 at 21:56
  • That's fine that you don't mind if it is html 5 but without the additional information I asked for it is difficult to recreate your problem and help – ProphetofProfit Aug 06 '16 at 07:54
  • I can't recreate anything even close to what you have pictured using the code you've given. Here's a JSFiddle of your code: https://jsfiddle.net/21mhhm3u/ Could you elaborate on how you are generating what's pictured? – ProphetofProfit Aug 06 '16 at 08:18
  • Thank you, this is a lot easier to work with now that the problem is reproducible. I believe I was able to fix your issue now, hope the answer below helps. – ProphetofProfit Aug 06 '16 at 21:31

0 Answers0