com.supermap.mapping.imChart

Class LineChartData



  • public class LineChartData
    extends ChartData
    line chart data class, build chart data for displaying line chart A number of values form a polyline
    • Constructor Detail

      • LineChartData

        public LineChartData()
        The constructor.
    • Method Detail

      • addValue

        public void addValue(double value)
        Added a value
        Parameters:
        value - value
      • removeValue

        public boolean removeValue(int index)
        remove value with specified position
        Parameters:
        index - value index.
        Returns:
        return whether remove successfully
      • clearValues

        public void clearValues()
        clear data
      • setLineWidth

        public void setLineWidth(float width)
        sets line width
        Parameters:
        width - line width
      • setNodeRadius

        public void setNodeRadius(float radius)
        Sets node radius
        Parameters:
        radius - node radius
      • setNodeColor

        public void setNodeColor(int color)
        Sets node color
        Parameters:
        color - node color