File tree Expand file tree Collapse file tree 5 files changed +109
-6
lines changed
src/components/containers Expand file tree Collapse file tree 5 files changed +109
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,21 @@ class AnnotationAccordion extends Component {
4343
4444 return (
4545 < TraceRequiredPanel addAction = { canAdd ? addAction : null } >
46- { content ? content : null }
46+ { content ? (
47+ content
48+ ) : (
49+ < div className = "panel__empty__message" >
50+ < div className = "panel__empty__message__heading" > { _ ( 'Call out your data.' ) } </ div >
51+ < div className = "panel__empty__message__content" >
52+ < p >
53+ { _ (
54+ 'Annotations are text and arrows you can use to point out specific parts of your figure.'
55+ ) }
56+ </ p >
57+ < p > { _ ( 'Click on the + button above to add an annotation.' ) } </ p >
58+ </ div >
59+ </ div >
60+ ) }
4761 </ TraceRequiredPanel >
4862 ) ;
4963 }
Original file line number Diff line number Diff line change @@ -49,7 +49,21 @@ class ImageAccordion extends Component {
4949
5050 return (
5151 < TraceRequiredPanel addAction = { canAdd ? addAction : null } >
52- { content ? content : null }
52+ { content ? (
53+ content
54+ ) : (
55+ < div className = "panel__empty__message" >
56+ < div className = "panel__empty__message__heading" > { _ ( 'Logos, watermarks and more.' ) } </ div >
57+ < div className = "panel__empty__message__content" >
58+ < p >
59+ { _ (
60+ 'Embed images in your figure to make the data more readable or to brand your content.'
61+ ) }
62+ </ p >
63+ < p > { _ ( 'Click on the + button above to add an image.' ) } </ p >
64+ </ div >
65+ </ div >
66+ ) }
5367 </ TraceRequiredPanel >
5468 ) ;
5569 }
Original file line number Diff line number Diff line change @@ -49,7 +49,23 @@ class ShapeAccordion extends Component {
4949
5050 return (
5151 < TraceRequiredPanel addAction = { canAdd ? addAction : null } >
52- { content ? content : null }
52+ { content ? (
53+ content
54+ ) : (
55+ < div className = "panel__empty__message" >
56+ < div className = "panel__empty__message__heading" >
57+ { _ ( 'Lines, Rectangles and Ellipses.' ) }
58+ </ div >
59+ < div className = "panel__empty__message__content" >
60+ < p >
61+ { _ (
62+ 'Add shapes to a figure to call out points or periods in time, thresholds, or areas of interest.'
63+ ) }
64+ </ p >
65+ < p > { _ ( 'Click on the + button above to add a shape.' ) } </ p >
66+ </ div >
67+ </ div >
68+ ) }
5369 </ TraceRequiredPanel >
5470 ) ;
5571 }
Original file line number Diff line number Diff line change @@ -110,8 +110,31 @@ class TraceAccordion extends Component {
110110 }
111111 } ,
112112 } ;
113-
114- return < PlotlyPanel addAction = { addAction } > { this . renderTraceFolds ( ) } </ PlotlyPanel > ;
113+ const content = this . renderTraceFolds ( ) ;
114+ return (
115+ < PlotlyPanel addAction = { addAction } >
116+ { content . length ? (
117+ content
118+ ) : (
119+ < div className = "panel__empty__message" >
120+ < div className = "panel__empty__message__heading" > Trace your data.</ div >
121+ < div className = "panel__empty__message__content" >
122+ < p >
123+ { _ (
124+ 'Traces of various types like bar and line are the building blocks of your figure.'
125+ ) }
126+ </ p >
127+ < p >
128+ { _ (
129+ 'You can add as many as you like, mixing and matching types and arranging them into subplots.'
130+ ) }
131+ </ p >
132+ < p > { _ ( 'Click on the + button above to add a trace.' ) } </ p >
133+ </ div >
134+ </ div >
135+ ) }
136+ </ PlotlyPanel >
137+ ) ;
115138 }
116139
117140 if ( canGroup ) {
Original file line number Diff line number Diff line change @@ -94,7 +94,43 @@ class TransformAccordion extends Component {
9494 } ) ,
9595 } ;
9696
97- return < PlotlyPanel addAction = { addAction } > { content ? content : null } </ PlotlyPanel > ;
97+ return (
98+ < PlotlyPanel addAction = { addAction } >
99+ { content ? (
100+ content
101+ ) : (
102+ < div className = "panel__empty__message" style = { { paddingTop : 0 } } >
103+ < div className = "panel__empty__message__content" >
104+ < div style = { { textAlign : 'left' } } >
105+ < p >
106+ < strong > { _ ( 'Filter' ) } </ strong > { ' ' }
107+ { _ ( ' transforms allow you to filter data out from a trace.' ) }
108+ </ p >
109+ < p >
110+ < strong > { _ ( 'Split' ) } </ strong > { ' ' }
111+ { _ (
112+ ' transforms allow you to create multiple traces from one source trace, so as to style them differently.'
113+ ) }
114+ </ p >
115+ < p >
116+ < strong > { _ ( 'Aggregate' ) } </ strong > { ' ' }
117+ { _ (
118+ ' transforms allow you to summarize a trace using an aggregate function like "average" or "minimum".'
119+ ) }
120+ </ p >
121+ < p >
122+ < strong > { _ ( 'Sort' ) } </ strong > { ' ' }
123+ { _ (
124+ ' transforms allow you to sort a trace, so as to control marker overlay or line connection order.'
125+ ) }
126+ </ p >
127+ </ div >
128+ < p > { _ ( 'Click on the + button above to add a transform.' ) } </ p >
129+ </ div >
130+ </ div >
131+ ) }
132+ </ PlotlyPanel >
133+ ) ;
98134 }
99135}
100136
You can’t perform that action at this time.
0 commit comments