Some improvements to additional lines in scatter plot.
Layout is still broken if X/Y selectory take up too much space.
@@ -1443,13 +1443,14 @@ function getSelectorForScatter(identifier) {
}
function getSecondLineFactorForScatter() {
- var select = $('<select title="select a factor for additional lines in the plot">', {class:'plot-second-line-factor'});
- for (var number = 1; number < Math.pow(10,10);
+ var select = $('<select title="select a factor for additional lines in the plot" style="direction: rtl;">', {class:'plot-second-line-factor'});
+ for (var number = 2; number < Math.pow(10,9);
number = (number < 10) ? (number + 1) : (number * 10)) {
select.append($('<option>', {
value:number,
- selected:(graphData.secondLineFactor == number)})
- .text(number));
+ selected:(graphData.secondLineFactor == number),
+ text: number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, '\u202f'),
+ }));
}
select.change(function(){
var selectedValue = Number(select.find(':selected')[0].value);
@@ -1542,7 +1543,7 @@ function showScatterPlot() {
objects: [
{line: {
name: 'diagonalLine',
- lineWidth: 1,
+ lineWidth: 2,
color: 'red',
shadow: false,
start: [minValue, minValue],
