baby-step tutorial on adding dynamism in chats (ms excel)

39
How can we create Dynamic Chart in Excel? -Amit Panasara Vadodara, Gujarat, India art (Dynamic Interactive) -A baby-step tutorial….

Upload: amit-panasara

Post on 18-Dec-2014

119 views

Category:

Education


2 download

DESCRIPTION

for hands on experiment : https://docs.google.com/open?id=0Bwk4PT4CUXraNWgyN0JHTEYwR3M Click-by-Click Tutorial is designed for non-excel user.

TRANSCRIPT

Page 1: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

How can we create Dynamic Chart in Excel?

-Amit PanasaraVadodara,

Gujarat, India

Chart (Dynamic + Interactive)

-A baby-step tutorial….

Page 2: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

What Is Dynamic & Interactive Chart?

• When user add the data in the database & chart will incorporate newly inputted data-row, it is called dynamic chart i.e. chart span changes with data entry (in our chart data table if you insert additional data in the 15th row chart axis span, title etc will change accordingly)

• When user is able to get response from chart / database on basis of requirement it is called interactivity. (In our chart by using the scrollbar we are responded via tracker point)

Page 3: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Preview

Page 4: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

DEFINING DYNAMIC DATA RANGE

to feed the chart Dynamically

Page 5: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Go to Formulas > Name Manager

Page 6: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Click on New Button to add a field

Page 7: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Add cost & date_field range label one by one with given formulas to create Dynamic Range

Page 8: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

CREATING INTERACTIVE CHART CONTROL TABLE

to feed the chart for interaction

Page 9: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Create the table shown at the left side and add the formulas as below

Date CostMax_cost =INDEX(date_field,MATCH(G3,cost,0),0) =MAX(cost)Min_cost =INDEX(date_field,MATCH(G4,cost,0),0) =MIN(cost)

Tracker Button Value 36 =F6/10Total No. of Date =COUNTA(date_field)Nearest Larger Cost =INDEX(date_field,FLOOR(G6,1),0) =OFFSET(B2,FLOOR(G6,1)-1,0)Nearest Smaller Cost =INDEX(date_field,CEILING(G6,1),0) =OFFSET(B2,CEILING(G6,1)-1,0)

x_axis projection =F12 0Tracked Point =F8+(F9-F8)*($G$6-FLOOR($G$6,1)) =G8+(G9-G8)*(G6-FLOOR(G6,1))y_axis projection =A2 =G12Co

ntro

ls fo

r int

erac

tive

char

t

="Cost Analysis (from " & TEXT(MIN(date_field),"mmm yy") & " to " & TEXT(MAX(date_field),"mmm yy")&")"

iteration for Tracking axis

Plotting of Tracking Lines

Formula of linear interpolation

Page 10: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

ADDING CHARTS

Page 11: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Go to Insert > Line Chart

Page 12: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Chart Tools > Design > Select Data

If Chart Tools ribbon group is not visible then click on the chart area , it will be automatically shown in the title bar.

Page 13: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Click on Add Button & fill Series name & Series values as shown

Page 14: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Similarly add Horizontal Axis Label by clicking on Edit button

Page 15: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

HIGHLIGHTING MAX-MIN VALUES

Page 16: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Add the Max_cost Series same as we had added the Cost Series

Page 17: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 18: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 19: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Similarly add Min_cost point to the graph

Page 20: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

INSERTING TRACKER POINT WITH PROJECTION LINES

Page 21: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Insert simple Tracked point with random value as Max_cost point initialized & then change its chart type

Page 22: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 23: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 24: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 25: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Formatting the projection lines & Tracker point

Select the “Tracker Point” Series and go to Format Data Series via right-clicking

Page 26: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Make changes shown as below

Page 27: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Adding Value to the Tracker Point

Select the Tracker Point & add the Data Label as shown in snapshot

Page 28: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

PLACING CONTROLS FOR INTERACTIVITY

Page 29: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Adding the Developer Tab

Developer Tab contains the various type of Form buttons & ActiveX buttons like command button, checkbox, toggle button, scrollbar, option(radio) button etc.

This tab is useful for VBA developer, but we will not use VBA coding in this tutorial session.

Page 30: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)
Page 31: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Adding Scrollbar

Scrollbar to interact with tracker point

Page 32: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Right click on the scroll bar and input following required fields

Page 33: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Formatting the Horizontal axis

Page 34: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Axis OptionsChanging the Base Unit, Minor unit etc will useful for smooth operation of tracker point shift.

These changes should be done after declaring full chart means after defining Max_cost, Min_cost and Tracker point chart series ( as we have already defined as XY Scatter Graph) .

If Axis defined with Base Unit as Days in prior stage then during changing the chart type of Max/Min/Tracker Point as XY Scatter, computer will take more process time (or may be hanged) to place the these points because of 365 Days within a year to be controlled.

(try it on dummy graph)

Page 35: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

ADDING DYNAMIC CHART TITLES & AXIS LABELS

Page 36: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Adding Static Title & Labels

Page 37: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Referencing the Title+Axis Label to make it dynamic with content

Chart Parameter Reference cellChart Title =Sheet1!$E$1Verticle Axis Name =Sheet1!$B$1Horizontal Axis Name =Sheet1!$A$1

Select the chart title and then write cell reference in the formula barSimilarly, allocate the cell reference to the axis labels also.

Page 38: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

Application

• Dashboard simulation• Stock-market Tracker• Control Panel Creation• …...• …..• ….• …• ..• .

Page 39: Baby-step tutorial on adding Dynamism in Chats (Ms Excel)

TH^NK YOU FOR PATIENTLY ENJOYING THE TUTORIAL

Make experiments on the attached graph to be familiar with Dynamic cum Interactive chart and formulas used e.g. INDEX, OFFSET, FLOOR, COUNTA etc.…………. Create an static chart(without dynamic range) and feel the difference……….