Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Creating a movable line


Creating a movable line

Author
Message
Wildrose
Wildrose
Forum God
Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)Forum God (361 reputation)

Group: Forum Members
Posts: 1, Visits: 8
Hi,



I have to create a movable vertical line in a chart which consists of 3 graphs. the line should be movable from left to right and vice versa with regard to the x-axis.



Example: Let's say that the line is dragged on a particular value on the x-axis, the values of the y axis should be shown on each point of the graph.



How do i create such a movable line?



I hope you got me..

Regards,



WildRose
vikas
vikas
Forum God
Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)

Group: Forum Members
Posts: 14, Visits: 9
Step 1: Create an XY (Scatter) chart…



For this example, theclosetentrepreneur.com feed subscribers for the month of May is being used.



location.gifUsing the Chart Wizard, create an XY (Scatter) chart with time on the x-axis and your numeric data on the y-axis. If you want to follow the example in this tutorial, you can download the Excel spreadsheet *HERE*. Be sure to follow all the Chart Wizard steps and choose the “as object in” option to place the chart in your worksheet (we can change the location of the chart later).

Step 2: Add the vertical line data to your chart…



In a separate area on your worksheet, add the info for the vertical line data. Be sure to follow the same data structure that you used for your original data. For this example, the date when theclosetentrepreneur.com was featured on dumblittleman.com is being used as the vertical line data. It doesn’t matter what you name your y-axis data (you will see why “featured on dumblittleman.com” is being used in a moment) or what value you use as long as it is in the neighborhood of the data that has been plotted.





Once you’ve entered your vertical line data, select it and place your mouse over the select border until you see the “four arrow” cursor appear. At this point, click the selected data and drag it to your chart.





Step 3: “Hacking” the error bars to create a vertical line…



format_series.gifAfter dropping the vertical line data in your chart, you should see a singe point appear representing your vertical line data. Click on the data point once to select it, then right click on the data point and choose “Format Data Series…”. In the “Format Data Series…” dialog box, click the “Axis” tab and select “Secondary axis”. Then click on the “Y Error Bars” tab and select the “Minus” option under Display. Change the error amount to percentage and enter 100% for the value. Click “OK” and your data point will now appear on a secondary axis with a vertical line underneath it which was created by the “minus” y-error bar. Changing the date and value of the vertical line data will move the line around as you wish, and the vertical line will remain in place when resizing or adding more data to the chart.

chart.

Web design services       

SmileSmile

Website Designing Company
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search