Statistical Analysis
Duplicate X Values
Fit a line while retaining repeated X observations.
Duplicate X Values is a chart. The table has columns X, Y. There are 6 data rows. The first rows read: 1,2; 1,4; 2,4; 2,6.
Keep the header row. Add or edit a data row in the field below, then generate to redraw only this table.
Equation
X,Y
1,2
1,4
2,4
2,6
3,6
3,8
How to read the table
A chart page starts from a small CSV table. The first row names the columns, and each later row is one observation. DGS reads that table in the chart workflow and draws a D3 chart such as bars, a line, a pie, a scatterplot matrix, or a hierarchy.
Changing a number changes only that mark. Changing a header can change which column is treated as the category and which columns are the values. The editable field below is the whole table, so you can add a row and generate the chart again.
Reading the input
X,Y— This is a header or a data row. Values in the same column share a meaning.1,2— This is a header or a data row. Values in the same column share a meaning.1,4— This is a header or a data row. Values in the same column share a meaning.2,4— This is a header or a data row. Values in the same column share a meaning.2,6— This is a header or a data row. Values in the same column share a meaning.3,6— This is a header or a data row. Values in the same column share a meaning.3,8— This is a header or a data row. Values in the same column share a meaning.
Try a change
- Change one number in the last row, leave the header as it is, and generate the chart again. Only that mark should move.
- Add a new row in the same number of columns. A pie slice, bar, or line point appears for the new row.
Generate Chart reads this CSV in the chart workflow and draws it with D3. The example page does not embed the live chart. The button below opens the studio and runs the table.