Dashed Line Plot

You can set dash size for a line in a LinePlot by setting the Line.strokeDasharray property inside .shapeConfig( ) to a string of number:

var myData = [
  {fruit: "cherry", price: 7,  year: 2014},
  {fruit: "cherry", price: 9,  year: 2015},
  {fruit: "cherry", price: 5,  year: 2016},
  {fruit: "cherry", price: 10, year: 2017},
  {fruit: "cherry", price: 12, year: 2018}
];

new d3plus.LinePlot()
  .config({
    data: myData,
    groupBy: "fruit",
    x: "year",
    y: "price",
    shapeConfig: {
      Line: {
        strokeDasharray: "10"
      }
    }
  })
  .render();