You do not actually need anydice to do this.
Beside Ilmari Karonen's answer, you can consider the math behind this kind of dice rolling.
We know that a d6 follow a discrete uniform distribution, whose expected value \${\rm E}[d6]\$ is 3.5. The expected value operator is linear, meaning that the expected value of the sum of the outcomes of two dice \$d_1, \, d_2\$ is the sum of the expected values of the two outcomes:
$$
{\rm E}[d_1 +d_2] = {\rm E}[d_1]+{\rm E}[d_2]
$$
and it can be generalized to \$X\$ dice.
Then, you can directly compute the expected value of Xd6, which reads as
$$
{\rm E}[Xd6] = X\cdot{\rm E}[d6] = X\cdot3.5
$$
Hence, you can plot the dependence of the expected value on the number of d6 rolled, by considering the function
$$
y = 3.5x
$$
in the Cartesian Plane. Down below you can find an example written in Python.
import numpy as np
import matplotlib.pyplot as plt
average = np.zeros(10)
for x in np.arange(1,11,1):
average[x-1] = x*3.5
plt.plot(np.arange(1,11,1),average,'o--')
plt.xlabel("Number of Dice")
plt.ylabel("Expected value")
You can generalize this approach: for example you can plot the variance or the standard deviation of Xd6, or the expected value of Xd12 or other kind of dice.