vincent icon indicating copy to clipboard operation
vincent copied to clipboard

Changing dot size in scatter plots

Open sahands opened this issue 10 years ago • 1 comments

Is this currently possible to do in a nicer way than what I have below?

plot.marks[0].marks[0].properties.enter.size.value = DOT_SIZE

sahands avatar Jun 10 '14 19:06 sahands

Looks like it's hard-coded atm. Would be a good pull request.

https://github.com/wrobstory/vincent/blob/master/vincent/charts.py#L183

        enter_props = PropertySet(
            x=ValueRef(scale='x', field="data.idx"),
            y=ValueRef(scale='y', field="data.val"),
            size=ValueRef(value=100),  # <-- right here
            fill=ValueRef(scale="color", field='data.col'))

jaredly avatar Sep 19 '14 05:09 jaredly