class ILinePlot(IChart): """A line plot.""" occurence.containing(occurence.One('data', IData2D), occurence.ZeroOrOne('lines', ILines), occurence.ZeroOrOne('xValueAxis', IXValueAxis), occurence.ZeroOrOne('yValueAxis', IYValueAxis), occurence.ZeroOrOne('lineLabels', ILineLabels), *IChart.queryTaggedValue('directives', ())) reversePlotOrder = attr.Boolean( title='Reverse Plot Order', description='When true, the coordinate system is reversed.', required=False) lineLabelNudge = attr.Measurement( title='Line Label Nudge', description='The distance between the data point and its label.', required=False) lineLabelFormat = attr.Text( title='Line Label Format', description='Formatting string for data point labels.', required=False) joinedLines = attr.Boolean( title='Joined Lines', description='When true, connect all data points with lines.', required=False) inFill = attr.Boolean( title='Name', description=('Flag indicating whether the line plot should be filled, ' 'in other words converted to an area chart.'), required=False)
class ILinePlot(IChart): """A line plot.""" occurence.containing(occurence.One('data', IData2D), occurence.ZeroOrOne('lines', ILines), occurence.ZeroOrOne('xValueAxis', IXValueAxis), occurence.ZeroOrOne('yValueAxis', IYValueAxis), occurence.ZeroOrOne('lineLabels', ILineLabels), *IChart.queryTaggedValue('directives', ())) reversePlotOrder = attr.Boolean( title=u'Reverse Plot Order', description=u'When true, the coordinate system is reversed.', required=False) lineLabelNudge = attr.Measurement( title=u'Line Label Nudge', description=u'The distance between the data point and its label.', required=False) lineLabelFormat = attr.String( title=u'Line Label Format', description=u'Formatting string for data point labels.', required=False) joinedLines = attr.Boolean( title=u'Joined Lines', description=u'When true, connect all data points with lines.', required=False)
class IPieChart(IChart): """A pie chart.""" occurence.containing(occurence.One('data', ISingleData1D), occurence.ZeroOrOne('slices', ISlices), occurence.ZeroOrOne('labels', ISimpleLabels), *IChart.queryTaggedValue('directives', ())) startAngle = attr.Integer( title=u'Start Angle', description=u'The start angle in the chart of the first slice ' u'in degrees.', required=False) direction = attr.Choice( title=u'Direction', description=u'The direction in which the pie chart will be built.', choices=('clockwise', 'anticlockwise'), required=False) checkLabelOverlap = attr.Boolean( title=u'Check Label Overlap', description=(u'When true, check and attempt to fix standard ' u'label overlaps'), required=False) pointerLabelMode = attr.Choice( title=u'Pointer Label Mode', description=(u'The location relative to the slace the label should ' u'be placed.'), choices={ 'none': None, 'leftright': 'LeftRight', 'leftandright': 'LeftAndRight' }, required=False) sameRadii = attr.Boolean( title=u'Same Radii', description=u'When true, make x/y radii the same.', required=False) orderMode = attr.Choice(title=u'Order Mode', description=u'', choices=('fixed', 'alternate'), required=False) xradius = attr.Measurement(title=u'X-Radius', description=u'The radius of the X-directions', required=False) yradius = attr.Measurement(title=u'Y-Radius', description=u'The radius of the Y-directions', required=False)
class IPieChart3D(IPieChart): """A 3-D pie chart.""" occurence.containing(occurence.One('slices', ISlices3D), *IChart.queryTaggedValue('directives', ())) perspective = attr.Float(title='Perspsective', description='The flattening parameter.', required=False) depth_3d = attr.Measurement(title='3-D Depth', description='The depth of the pie.', required=False) angle_3d = attr.Float(title='3-D Angle', description='The view angle in the Z-coordinate.', required=False)
class IBarChart(IChart): """Creates a two-dimensional bar chart.""" occurence.containing(occurence.One('data', IData1D), occurence.ZeroOrOne('bars', IBars), occurence.ZeroOrOne('categoryAxis', ICategoryAxis), occurence.ZeroOrOne('valueAxis', IValueAxis), occurence.ZeroOrOne('barLabels', IBarLabels), *IChart.queryTaggedValue('directives', ())) direction = attr.Choice( title=u'Direction', description=u'The direction of the bars within the chart.', choices=('horizontal', 'vertical'), default='horizontal', required=False) useAbsolute = attr.Boolean( title=u'Use Absolute Spacing', description=u'Flag to use absolute spacing values.', default=False, required=False) barWidth = attr.Measurement(title=u'Bar Width', description=u'The width of an individual bar.', default=10, required=False) groupSpacing = attr.Measurement( title=u'Group Spacing', description=u'Width between groups of bars.', default=5, required=False) barSpacing = attr.Measurement( title=u'Bar Spacing', description=u'Width between individual bars.', default=0, required=False) barLabelFormat = attr.String( title=u'Bar Label Text Format', description=u'Formatting string for bar labels.', required=False)
class ISpiderChart(IChart): """A spider chart.""" occurence.containing(occurence.One('data', IData1D), occurence.ZeroOrOne('strands', IStrands), occurence.ZeroOrOne('strandLabels', IStrandLabels), occurence.ZeroOrOne('spokes', ISpokes), occurence.ZeroOrOne('spokeLabels', ISpokeLabels), occurence.ZeroOrOne('labels', ISimpleLabels), *IChart.queryTaggedValue('directives', ())) startAngle = attr.Integer( title='Start Angle', description='The start angle in the chart of the first strand ' 'in degrees.', required=False) direction = attr.Choice( title='Direction', description='The direction in which the spider chart will be built.', choices=('clockwise', 'anticlockwise'), required=False)
class ISingleData1D(interfaces.IRMLDirectiveSignature): """A 1-D data set.""" occurence.containing(occurence.One('series', ISeries1D))