Coulomb's Law must be suitably modified to work in two dimensions, and the 1/r2 law changes to 1/r.
The following example is designed to visualize the field of a charged line:
The charge line is simulated by means of 40 charges aligned, of 1000 u each. Four unit charges are assumed to be located at 100, 200 and 400 units of distance from the line. It can be observed that the force on the unit charges decreases as the inverse of the distance from the line. To check this, select the test charges with the right button of the mouse and read position and force values on the inspector panel.
The field results to be radial to the line, as shown in the following exmple:
Wait for a few seconds until all the field lines have been plotted. Rotate the figure. You will see that the field lines differ noticeably from those expected for an infinite line, due to the finite length of the simulated line compared to the dimensions of the observation region.