()
| 360 | } |
| 361 | |
| 362 | append_axis() { |
| 363 | this.update_scales(); |
| 364 | |
| 365 | // Create initial SVG element |
| 366 | this.g_axisline = this.d3el |
| 367 | .append('g') |
| 368 | .attr('class', 'axis') |
| 369 | .attr('transform', this.get_axis_transform()) |
| 370 | .call(this.axis); |
| 371 | |
| 372 | // Create element for axis label |
| 373 | const lineText = this.g_axisline |
| 374 | .append('text') |
| 375 | .attr('class', 'axislabel') |
| 376 | .text(this.model.get('label')); |
| 377 | applyStyles(lineText, this.get_text_styling()); |
| 378 | applyAttrs(lineText, this.get_label_attributes()); |
| 379 | |
| 380 | // Apply custom settings |
| 381 | this.update_grid_lines(); |
| 382 | this.update_color(); |
| 383 | this.apply_tick_styling(); |
| 384 | this.update_label(); |
| 385 | } |
| 386 | |
| 387 | get_offset_promise() { |
| 388 | /* |
no test coverage detected