Closed MariaAdner closed 49 minutes ago
Hi there,
nice user story.
You can shorten your value proposition to something like this: As a user I want to set the properties of the markers my plot to have the option to change the visual display of my data.
Apart from that, nicely done 👏
--> please change the value proposition to something similar to my suggestion. (US is approved)
Markers-properties
Value proposition
As a user I want to set the properties of the markers in my plot so that I can change the visual display.
Description
Acceptance Criteria
Tasks
[x] Create a new feature branch "Marker-properties".
[x] In the lib folder create a
listOfMarkerProperties.js
file.markerColorArray, a markerSymbolArray and a markerSizeArray
arrays.markerColorArray / markerSymbolArray / markerSizeArray
contain the options for the color, the symbol and the size.[x] Create a
MarkerProperties
component.markerColor / markerSymbol / markerSize
variable with initial value set to "" / "" / 0.handleMarkerColorChange / handleMarkerSymbolChange / handleMarkerSizeChange
function which declares a choice variable set to event.target.value.completedMarkerProperties
function to disable the "Next" button until the user has selected values in all dropdown menus.handleMarkerProperties
function with an alert message.handleSubmit function
which does event.preventDefault().Heading
component and a form.handleSubmit
function as prop to theonSubmit
attribute.Container
component, and inside of it, 3 instances of theParagraph
component, 3 instances of theDropDownMenu
component and theStyledInputTypeSubmit
component.Container
component has the $centered attribute set to "center".DropDownMenu
has "Marker color" / "Marker symbol" / "Marker size" as prop to theidString
attribute and thehandleMarkerColorChange / handleMarkerSymbolChange / handleMarkerSizeChange
function as prop to theonChange
attribute andmarkerColorArray / markerSymbolArray / markerSizeArray
as prop to the arrayOfOptions attribute.StyleInputTypeSubmit
component has "Next" as value to the value attribute, the handleMarkerProperties function as value to theonClick
attribute and andcompletedMarkerProperties()
function as value to the disabled attribute.[x] In the index.js file, add the MarkerProperties component (before the Plotting component).
[x] In the Plotting component, access the markerColor, markerSymbol and markerSize variables.
dataOptions = { x: xVariable, y: yVariable, mode: selectedMode, type: selectedType, marker: { color: markerColor, symbol: markerSymbol, size: Number(markerSize), }, }
.