Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Preset SVG line path or shown label on a layer, with FigConfig parameter #24

Open
g1eng opened this issue Dec 15, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@g1eng
Copy link
Owner

g1eng commented Dec 15, 2021

Request

Layers with ticks are not enough to show specific datum on specific index. A Layer which consists many object to represent many data, hardly shows which is the target datum of user's interest, without tapping the object or getting hover actions.

  • A datum should have several representation to be emphasized, not only for hover actions and labels.
  • An user should have several way to choose specific datum to show (or add) label or emphasize it. (now only with hover action)

Proposal

  • ruler option should be defined to show a line for a layer. A ruler is for X or Y direction and holds its position in X or Y pixels on a layer.
  • accentData should be defined to show specific label on rendering. A datum should be specified with column name or its index.

For iterative data:

{
  "accentData": "data_c", 
  "ruler": {
    "x": "data_c"
  }
}

For numeric data:

{
  "accentData": 3, 
  "ruler": {
    "x": 75.35
  }
}

Also updateRuler, updateAccentData or deleteRuler method may be implemented in Layer class, for the future convenience.

@g1eng g1eng added the enhancement New feature or request label Dec 15, 2021
@g1eng g1eng changed the title Additional SVG line path or shown label on a layer, with FigConfig parameter Preset SVG line path or shown label on a layer, with FigConfig parameter Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant