Skip to content

[FR] Control relative size of markers in scatter plot #12

@tosascott

Description

@tosascott

First off, thank you for the Bases Chart plugin! It allows me to finally create a visual map of sets of research notes. It works as is, but I have a few feature requests that will make it even better.

Is your feature request related to a problem? Please describe.
I have a feature request. In addition to controlling the X and Y location of a note marker on a scatter plot chart, I would like to be able to control the size of each note's marker through a property (e.g., size, rank, priority). That would allow for a visual indication of the notes' relative importance.

Describe the solution you'd like
I would like to be able to add a marker size property (e.g., size). The property's type must be number. The property's range must be zero or larger.

Given the range of size for all notes included in the base's filter as [min, max], and the current implementation's marker diameter is d, and the diameter of the largest possible marker diameter is D, then:

  • If a note lacks the requisite size property, the size property type is invalid, or it is below zero, its diameter is d.
  • Otherwise, a note's marker diameter would be proportional to size place in the range. For example: ((size - min)/(max-min)) * ((D - d) + d).
  • A frame of size D/2 could be placed around the chart so a marker that is on the border is not truncated.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions