ProcessTrends.
Com
D. Kelly O'Day
http://www.ProcessTrends.com/
Interactive Charts - Checkboxes
Select the data you want to plot with checkboxes
This workbook shows you how to set up your data table, range
names and checkboxes to give Users an interactive capability to plot
any combination of data series that they want.
apability to plot
Goal:
Approach:
Interactive Chart - Checkboxes
Toggle trend chart series on/off by checkbox
Use range names. Based on checkbox, plot blank or data series
1. Organize Data
A. Create Data range names for date, data and blank series range names
B. Add checkboxes for each series with linked cells
C. Create Show data range names for T/F linked cells
D. Create Series_X range names for each data series - Data or Blank series de
2. Create chart with all data series.
3. For each chart series, edit series formula to include Series_X range names
Data
1 2 3
Step A
Create Data and Blank Range Names
blank
data_79_Rest
data_amvet
data_average
data_city_hall
data_first_donuts
data_second_donuts
series_79
series_amvet
series_average
series_city_hall
series_first_donuts
series_second_donuts
show79
showamvet
showaverage
Blank Series
Step:
Show Data
Checkboxes?
1
False
Series Formula
Series_1 =If (Show_data_1, Data_1,Blank)
True
Series_2 =If(Show_data_2,Data_2,Blank)
Series_3 =If(Show_data_3,Data_3,Blank)
True
Step B
Insert Checkboxes
Establish Title, Linked Cell
Step C
Create Show_value Range Names
Assign Range Names to Each Linked Cell
Show_data_1, etc.
=OFFSET(week,9,10)
=OFFSET(week,0,1)
=OFFSET(week,0,5)
=OFFSET(week,0,7)
=OFFSET(week,0,2)
=OFFSET(week,0,3)
=OFFSET(week,0,4)
=IF(show79,data_79_Rest,blank)
=IF(showamvet,data_amvet,blank)
=IF(showaverage,data_average,blank)
=IF(showcity_hall,data_city_hall,blank)
=IF(showfirst_donuts,data_first_donuts,blank)
=IF(showsecond_donuts,data_second_donuts,blank)
=Chart!$D$4
=Chart!$D$8
=Chart!$D$9
showcity_hall
showfirst_donuts
showsecond_donuts
week
=Chart!$D$5
=Chart!$D$6
=Chart!$D$7
=OFFSET(Data!$A$2,0,0,COUNTA(Data!$A$2:$A$1000))
eries range names
Data or Blank series depending on checkbox
es_X range names
Step D
Create Plot Series Range Names
Depending on Linked cell value
Plot data series or Blank
ata_1, Data_1,Blank)
ata_2,Data_2,Blank)
ata_3,Data_3,Blank)
Step C
e Show_value Range Names
n Range Names to Each Linked Cell
Select locations to plot
79 Restaurant
City Hall
First Donuts
Second Donuts
AmVets
Average
Cl2 Residuals: 1/1/02 - 10/29/02
Plot?
1.5
TRUE
TRUE
TRUE
FALSE
FALSE
TRUE
1.0
Cl2 - mg/l
Location
0.5
Add - delete data locations
See chart adjust
0.0
Jan'02
Feb'02
Mar'02
Apr'02
May'02
Jun'02
Jul'02
Aug'02
Sep'02
Oct'02
Average
City Hall
First Donuts
79 Restaurant
Oct'02
Sample Date
1/2/02
1/8/02
1/15/02
1/22/02
1/29/02
2/5/02
2/12/02
2/19/02
2/26/02
3/5/02
3/12/02
3/19/02
3/26/02
4/2/02
4/9/02
4/16/02
4/23/02
4/30/02
5/7/02
5/14/02
5/21/02
5/29/02
6/4/02
6/11/02
6/18/02
6/25/02
7/2/02
7/9/02
7/16/02
7/23/02
7/31/02
8/6/02
8/13/02
8/20/02
8/27/02
9/3/02
9/10/02
9/17/02
9/24/02
10/1/02
10/8/02
10/15/02
10/22/02
10/29/02
79
First Second
Daily
Daily
City Hall
AmVets
Restaurant
Donuts Donut
Average
Max
0.10
1.03
0.66
0.96
0.56
0.66
1.03
0.42
1.08
0.69
0.79
0.37
0.67
1.08
0.12
0.93
0.71
0.80
0.61
0.63
0.93
0.31
0.90
0.65
0.66
0.62
0.63
0.90
0.25
0.92
0.69
0.77
0.58
0.64
0.92
0.44
0.99
0.64
0.75
0.49
0.66
0.99
0.24
1.03
0.76
0.87
0.56
0.69
1.03
0.29
0.96
0.81
0.74
0.68
0.70
0.96
0.21
0.80
0.59
0.62
0.42
0.53
0.80
0.14
0.88
0.66
0.64
0.50
0.56
0.88
0.26
0.93
0.60
0.75
0.50
0.61
0.93
0.44
0.87
0.69
0.65
0.59
0.65
0.87
0.40
1.15
0.69
0.68
0.63
0.71
1.15
0.34
0.92
0.70
0.73
0.45
0.63
0.92
0.30
0.84
0.75
0.69
0.68
0.65
0.84
0.32
0.87
0.55
0.61
0.52
0.57
0.87
0.34
0.60
0.87
0.79
0.68
0.66
0.87
0.42
1.04
0.87
0.84
0.58
0.75
1.04
0.44
0.77
0.59
0.71
0.83
0.67
0.83
0.59
1.05
0.98
0.96
0.79
0.87
1.05
0.35
0.81
0.80
0.77
0.86
0.72
0.86
0.47
1.06
0.76
0.81
0.70
0.76
1.06
0.36
0.95
0.74
0.99
0.39
0.69
0.99
0.43
0.90
0.65
0.72
0.84
0.71
0.90
0.31
0.86
0.91
0.79
0.68
0.71
0.91
0.23
0.90
0.65
0.75
0.61
0.63
0.90
0.31
0.84
0.70
0.77
0.65
0.65
0.84
0.26
0.89
0.78
0.84
0.56
0.67
0.89
0.22
0.78
0.76
0.35
0.62
0.55
0.78
0.19
0.95
0.58
0.78
0.68
0.64
0.95
0.25
0.90
0.62
0.87
0.67
0.66
0.90
0.04
0.71
0.63
0.62
0.45
0.49
0.71
0.11
0.80
0.65
0.86
0.49
0.58
0.86
0.10
0.58
0.33
0.48
0.28
0.35
0.58
0.05
0.70
0.32
0.53
0.51
0.42
0.70
0.05
0.65
0.40
0.50
0.24
0.37
0.65
0.05
0.59
0.51
0.43
0.36
0.39
0.59
0.06
1.10
0.59
0.68
0.48
0.58
1.10
0.10
0.70
0.62
0.83
0.54
0.56
0.83
0.02
0.79
0.52
0.67
0.52
0.50
0.79
0.05
0.72
0.59
0.84
0.47
0.53
0.84
0.10
0.92
0.61
0.89
0.66
0.64
0.92
0.15
0.87
0.56
0.91
0.76
0.65
0.91
0.04
0.89
0.72
0.93
0.57
0.63
0.93
Daily
Min
0.10
0.37
0.12
0.31
0.25
0.44
0.24
0.29
0.21
0.14
0.26
0.44
0.40
0.34
0.30
0.32
0.34
0.42
0.44
0.59
0.35
0.47
0.36
0.43
0.31
0.23
0.31
0.26
0.22
0.19
0.25
0.04
0.11
0.10
0.05
0.05
0.05
0.06
0.10
0.02
0.05
0.10
0.15
0.04
250
200
150
Series1
100
50
0
0
10
12
14
16
x1
y1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
blank
1
4
9
16
25
36
49
64
81
100
121
144
169
196
y1
y2
Yes
Yes
3000
cubic, 14, 2744
2500
13, 2197
2000
12, 1728
1500
11, 1331
1000
10, 1000
9, 729
8, 512
7, 343
6, 216
5, 64
125
4,
3,
0
2,
1,
18270
x1_,
0
20
500
40
60
quadratic
cubic
60
80
100
120
140
160
180
200
x2
y2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
8
27
64
125
216
343
512
729
1000
1331
1728
2197
2744