pycrossword  0.3
Pure-Python implementation of a crossword puzzle generator and editor
Functions
pycross.utils.graphs Namespace Reference

Functions

def data_from_dict (data, panda=True, xy=True)
 
def data_from_url (url)
 
def data_from_array (array)
 
def make_chart (data, mark_type='point', mark_props={}, x_title='x', x_props={}, y_title='y', y_props={}, color='x:N', shape='x:N', text_col=None, text_props={}, other_axes_and_channels={}, interactive=True, scale_factor=1.0, svg=False, save_file='chart.html', on_save=None)
 

Function Documentation

◆ data_from_array()

def pycross.utils.graphs.data_from_array (   array)

◆ data_from_dict()

def pycross.utils.graphs.data_from_dict (   data,
  panda = True,
  xy = True 
)

◆ data_from_url()

def pycross.utils.graphs.data_from_url (   url)

◆ make_chart()

def pycross.utils.graphs.make_chart (   data,
  mark_type = 'point',
  mark_props = {},
  x_title = 'x',
  x_props = {},
  y_title = 'y',
  y_props = {},
  color = 'x:N',
  shape = 'x:N',
  text_col = None,
  text_props = {},
  other_axes_and_channels = {},
  interactive = True,
  scale_factor = 1.0,
  svg = False,
  save_file = 'chart.html',
  on_save = None 
)
Constructs an Altair graph from data given by 'data'.

    - mark_type [str]: Any of:
        [area, bar, circle, geoshape, image, line, point, rect, rule, 
        square, text, tick, boxplot, errorband, errorbar]