Esempio n. 1
0
    def __init__(self, *args, **kwargs):
        super(Points, self).__init__(*args, **kwargs)

        shape = getColor(getValue(kwargs, 'shape'))
        if isinstance(shape, list):
            self.shapes = shape
        else:
            self.shape = getValue(kwargs, 'shape', ShapeType.DEFAULT)

        size = getColor(getValue(kwargs, 'size'))
        if isinstance(size, list):
            self.sizes = size
        else:
            self.size = getValue(kwargs, 'size', 6)

        fill = getColor(getValue(kwargs, 'fill'))
        if isinstance(fill, list):
            self.fills = fill
        else:
            self.fill = fill

        color = getColor(getValue(kwargs, 'color'))
        if isinstance(color, list):
            self.colors = color
        else:
            self.color = color

        outlineColor = getColor(getValue(kwargs, 'outlineColor'))
        if isinstance(outlineColor, list):
            self.outline_colors = outlineColor
        else:
            self.outline_color = outlineColor
Esempio n. 2
0
 def __init__(self, **kwargs):
     super(ConstantLine, self).__init__(**kwargs)
     self.x = self.transform_value_to_number(getValue(kwargs, 'x'))
     self.y = getValue(kwargs, 'y')
     self.color = getColor(getValue(kwargs, 'color'))
     self.width = getValue(kwargs, 'width', 1.5)
     self.style = getValue(kwargs, 'style')
     self.showLabel = getValue(kwargs, 'showLabel')
Esempio n. 3
0
 def __init__(self, **kwargs):
     super(Text, self).__init__(**kwargs)
     self.x = getValue(kwargs, 'x', 0)
     self.y = getValue(kwargs, 'y', 0)
     self.color = getColor(getValue(kwargs, 'color'))
     self.size = getValue(kwargs, 'size', 13)
     self.text = getValue(kwargs, 'text', '')
     self.show_pointer = getValue(kwargs, 'show_pointer', True)
     self.pointer_angle = getValue(kwargs, 'pointerAngle',
                                   (-0.25) * math.pi)
Esempio n. 4
0
    def __init__(self, *args, **kwargs):
        super(Bars, self).__init__(*args, **kwargs)

        width = getValue(kwargs, 'width')
        if isinstance(width, list):
            self.widths = width
        else:
            self.width = width

        color = getColor(getValue(kwargs, 'color'))
        if isinstance(color, list):
            self.colors = color
        else:
            self.color = color

        outlineColor = getColor(getValue(kwargs, 'outlineColor'))
        if isinstance(outlineColor, list):
            self.outline_colors = outlineColor
        else:
            self.outline_color = outlineColor
Esempio n. 5
0
    def __init__(self, **kwargs):
        super(CategoryGraphics, self).__init__(**kwargs)
        self.center_series = getValue(kwargs, 'centerSeries', False)
        self.use_tool_tip = getValue(kwargs, 'useToolTip', True)
        self.showItemLabel = getValue(kwargs, 'showItemLabel', False)
        self.outline = getValue(kwargs, 'outline', False)
        self.labelPosition = getValue(kwargs, 'labelPosition', "CENTER")
        self.fills = getValue(kwargs, 'fill')
        self.itemLabels = getValue(kwargs, 'itemLabel')
        self.seriesNames = getValue(kwargs, 'seriesNames')
        self.style = getValue(kwargs, 'style')
        self.size = getValue(kwargs, 'size')

        outline = getValue(kwargs, 'outlineColor')
        if isinstance(outline, list):
            self.outline_colors = outline
        else:
            self.outline_color = outline

        drawOutline = getValue(kwargs, 'drawOutline')
        if isinstance(drawOutline, list):
            self.outlines = drawOutline
        else:
            self.outline = drawOutline

        base = getValue(kwargs, 'base', 0.0)
        if isinstance(base, list):
            self.bases = base
        else:
            self.base = base

        width = getValue(kwargs, 'width')
        if isinstance(width, list):
            self.widths = width
        else:
            self.width = width

        style = getValue(kwargs, 'style')
        if isinstance(style, list):
            self.styles = style
        else:
            self.style = style

        self.value = getValue(kwargs, 'value', [])

        color = getColor(getValue(kwargs, 'color'))
        if isinstance(color, list):
            self.colors = color
        else:
            self.color = color
Esempio n. 6
0
    def __init__(self, *args, **kwargs):
        super(Stems, self).__init__(*args, **kwargs)
        self.width = getValue(kwargs, 'width', 1.5)
        color = getColor(getValue(kwargs, 'color'))
        if isinstance(color, list):
            self.colors = color
        else:
            self.color = color

        style = getValue(kwargs, 'style')
        if isinstance(style, list):
            self.styles = style
        else:
            self.style = getValue(kwargs, 'style', StrokeType.SOLID)
Esempio n. 7
0
 def __init__(self, *args, **kwargs):
     super(Crosshair, self).__init__(*args, **kwargs)
     self.width = getValue(kwargs, 'width')
     self.style = getValue(kwargs, 'style')
     self.color = getColor(getValue(kwargs, 'color'))
Esempio n. 8
0
 def __init__(self, *args, **kwargs):
     super(Area, self).__init__(*args, **kwargs)
     self.color = getColor(getValue(kwargs, 'color'))
     self.interpolation = getValue(kwargs, 'interpolation')
Esempio n. 9
0
 def __init__(self, *args, **kwargs):
     super(Line, self).__init__(*args, **kwargs)
     self.width = getValue(kwargs, 'width', 1.5)
     self.style = getValue(kwargs, 'style')
     self.interpolation = getValue(kwargs, 'interpolation')
     self.color = getColor(getValue(kwargs, 'color'))
Esempio n. 10
0
 def __init__(self, **kwargs):
     super(ConstantBand, self).__init__(**kwargs)
     self.x = getValue(kwargs, 'x')
     self.y = getValue(kwargs, 'y')
     self.color = getColor(
         getValue(kwargs, 'color', Color(0, 127, 255, 127)))