title: Display identical values in BarChart
body: <p>Problem is, when filling my barchart(either one) with a list, identical values get drawn over one another and appear as one. Took me quite a while to figure this out. Now I build a hacky workaround by simply looking for duplicates and adding a " " to them. But if you're displaying a list with 100+ entries and theyre all single digit numbers, youre bound to have up to 9 spaces behind each number for example, and that makes formatting all this really hard. Therefore my question: is there any way to instruct the barchart to draw them seperately, or if there is not, is there a better workaround than mine?</p>
  
  <pre><code>    public void updateChart(boolean originalChart, ArrayList&lt;SortingEntry&gt; entries){
      Platform.runLater(() -&gt; {
          ArrayList&lt;SortingEntry&gt; list = Functions.checkForDoubles(entries);
          if(originalChart){
              inputSeries = new XYChart.Series();
              for(SortingEntry entry:list){
                  XYChart.Data chartData = new XYChart.Data(entry.getValue(), entry.getValAsLong());
                  inputSeries.getData().add(chartData);
              }
              input.getData().clear();
              input.getData().add(inputSeries);
          } else {
              resultSeries = new XYChart.Series();
              for(SortingEntry entry:list){
                  XYChart.Data chartData = new XYChart.Data(entry.getValue(), entry.getValAsLong());
                  resultSeries.getData().add(chartData);
              }
              result.getData().clear();
              result.getData().add(resultSeries);
          }
          System.out.println();
      });
  }
  </code></pre>
  
  <p>checkForDoubles in Functions:</p>
  
  <pre><code>    public static ArrayList&lt;SortingEntry&gt; checkForDoubles(ArrayList&lt;SortingEntry&gt; list){
      ArrayList&lt;String&gt; doubles = new ArrayList&lt;&gt;();
      for(int i = 0; i &lt; list.size(); i++){
          for(int j = 0; j &lt; list.size(); j++){
              SortingEntry entry = list.get(i);
              if(entry.getValue().equals(list.get(j).getValue()) &amp;&amp; !doubles.contains(entry.getValue()) &amp;&amp; i != j){
                  doubles.add(entry.getValue());
                  list.remove(entry);
                  entry.setValue(entry.getValue()+" ");
                  list.add(entry);
                  checkForDoubles(list);
              }
          }
      }
      return list;
  }
  </code></pre>