Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
here is some code from a macro i am making. i would like it to make
an xy chart with my xvalues and yvalues range. these ranges are not side by side. as well this is usually creating seperate chart sheets not placing it on the worksheet id like. and where would i put .top,.left in this to properly place it. thanks very much Charts.Add ActiveChart.ChartType = xlXYScatter ActiveChart.SetSourceData Source:=series(Assay_Solutionscrollzoomindynrange. xls! xvalues,Assay_Solutionscrollzoomindynrange.xls!xva lues,1) _ PlotBy:=xlColumns With ActiveChart.SeriesCollection.NewSeries .Values = Range(XValues) .XValues = Range(YValues) .name = "Sheet1" End With With ActiveChart .HasTitle = True .ChartTitle.Characters.Text = Application.VLookup(i, Range("Graph"), 2) & " ppm vs Time " .Axes(xlCategory, xlPrimary).HasTitle = True .Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "Date Time" .Axes(xlValue, xlPrimary).HasTitle = True .Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = Application.VLookup(i, Range("Graph"), 2) & " ppm" End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A scatter plot with a 2 column data source | Charts and Charting in Excel | |||
Source data for XY scatter chart | Charts and Charting in Excel | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
Adding more source data to existing scatter plot | Charts and Charting in Excel | |||
How can i set the source-data-range of pivottable2 to the source . | Excel Discussion (Misc queries) |