@impetusuxp/vizualy-assistant
v1.0.0
Published
Vizualy charting library assistant methods
Maintainers
Readme
assistant.js
This is a helper file which is used by different vizually charts component to consume its methods.
Methods
getDefaultMargin()
this method is used to return default margin.getDefaultColor()
this method is used to return default color.emitEvent()
this method is used to emit event.drawSVG()
this method is used to draw the SVG.updateSVG()
this method is used to update the SVG.drawAxisGroup()
this method is used to draw the axis group.wordWrap()
this method is used to wrap the word.updateXAxis()
this method is used to update the x-axis.updateYAxis()
this method is used to update the y-axis.updateY1Axis()
this method is used to update the y1 axis.adjustTicks()
this method is used to adjust ticks spacing to not overlap.displayMessageOnScreen()
this method is used to displays provided messages on screen.setDimension()
this method is used to set the dimensions.cleanContainer()
this methos is used to remove the svg element.createTooltipWrapper()
this method is used to create the wrapper for tooltip.hideTooltipWrapper()
this method is used to hide the tooltip wrapperdrawGridLines()
this method is used to draw the grid lines.removeGridLines()
this method is used to remove the grid lines.drawAxisLabels()
this method is used to draw the axis labels.removeAxisLabel()
this method is used to remove the axis labels.populateTooltipContent()
this method is used to populate the tooltip content.getAxisFirstTick()
this method is used to populate the tooltip content.setScale()
this method is used to set the scale.setScaleRounding()
this method is used to set the scale round to true.setScalePadding()
this method is used to set the scale paddingisValidScaleType()
this method is used to validate scale type for given data.isValidScaleType()
this method is used to validate scale type for given data.isValidbarSpaceValue()
this method is used to validate barspace value in percentage.setTooltipPosition()
this method is used to the position of tooltip.setTooltipPosition()
this method is used to the position of tooltip.drawLegendContainer()
this method is used to draw legend container.drawZoomButtonsContainer()
this method is used to draw zoom button container.drawLegend()
this method is used to draw legends.positionLegend()
this method is used to give position to the legends.getTransitionFunction()
this method is used to apply transition and animation as per the duration.applyResizeEventHandler()
this method is used to risize the chart.applyResizeEventHandler()
this method is used to resize the chart.