Methods
C
N
P
Included Modules
Constants
TkCommandNames = [ 'canvas'.freeze, '::Plotchart::createPiechart'.freeze ].freeze
 
Class Public methods
new(*args)
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 901
def initialize(*args) # args := ([parent] [, keys])
  if args[0].kind_of?(Tk::Canvas)
    parent = args.shift
    @path = parent.path
  else
    super(*args) # create canvas widget
  end
  @chart = _create_chart
end
Instance Public methods
colors(*list)
Alias for: colours
colours(*list)
Also aliased as: colors
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 922
def colours(*list)
  tk_call_without_enc(@chart, 'colours', *list)
  self
end
plot(*dat)
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 917
def plot(*dat)  # argument is a list of [label, value]
  tk_call(@chart, 'plot', dat.flatten)
  self
end