MCPcopy Index your code
hub / github.com/bqplot/bqplot / append_axis

Method append_axis

js/src/Axis.ts:362–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 /*

Callers 2

renderMethod · 0.95
update_displayMethod · 0.95

Calls 10

update_scalesMethod · 0.95
get_axis_transformMethod · 0.95
get_text_stylingMethod · 0.95
get_label_attributesMethod · 0.95
update_grid_linesMethod · 0.95
update_colorMethod · 0.95
apply_tick_stylingMethod · 0.95
update_labelMethod · 0.95
applyStylesFunction · 0.90
applyAttrsFunction · 0.90

Tested by

no test coverage detected