use us locale when formatting floats
gnuplot needs us locale
This commit is contained in:
@@ -75,7 +75,7 @@ public class BarChartAggregatorForIntervals implements CustomAggregator, Indexed
|
|||||||
int offset = 0;
|
int offset = 0;
|
||||||
for (final String bucketId : bucketIds()) {
|
for (final String bucketId : bucketIds()) {
|
||||||
final long count = buckets.get(bucketId).get();
|
final long count = buckets.get(bucketId).get();
|
||||||
csv.append(offset + getIndex() * SPACE_BETWEEN_BARS + 0.5);
|
csv.append(String.format(Locale.US, "%f", offset + getIndex() * SPACE_BETWEEN_BARS + 0.5));
|
||||||
csv.append(",");
|
csv.append(",");
|
||||||
csv.append(renderLabels && isMiddleSeries ? bucketId : "");
|
csv.append(renderLabels && isMiddleSeries ? bucketId : "");
|
||||||
csv.append(",");
|
csv.append(",");
|
||||||
@@ -115,7 +115,7 @@ public class BarChartAggregatorForIntervals implements CustomAggregator, Indexed
|
|||||||
int offset = 0;
|
int offset = 0;
|
||||||
for (final String bucketId : bucketIds()) {
|
for (final String bucketId : bucketIds()) {
|
||||||
final long count = buckets.get(bucketId).get();
|
final long count = buckets.get(bucketId).get();
|
||||||
final String label = String.format("set label at %s %f, %d '%s' center front offset 0,0.3\n", // front
|
final String label = String.format(Locale.US, "set label at %s %f, %d '%s' center front offset 0,0.3\n", // front
|
||||||
xAxis == GnuplotAxis.X1 ? "first" : "second", //
|
xAxis == GnuplotAxis.X1 ? "first" : "second", //
|
||||||
offset + getIndex() * SPACE_BETWEEN_BARS + 0.5, // x-axis position of the label
|
offset + getIndex() * SPACE_BETWEEN_BARS + 0.5, // x-axis position of the label
|
||||||
count, // y axis position of the label
|
count, // y axis position of the label
|
||||||
|
|||||||
Reference in New Issue
Block a user