wcharczuk / go-chart

go chart is a basic charting library in go.
MIT License
3.99k stars 326 forks source link

How to reduce/remove PNG anti-aliasing? #158

Open jotto opened 4 years ago

jotto commented 4 years ago

I'm not sure if this "anti-aliasing" or PNG compression or something else:

image

source:

sparklinesChart := chart.Chart{
  Width:  700,
  Height: 100,
  Series: []chart.Series{
    chart.ContinuousSeries{
      Style: chart.Style{
        Show: true,
        StrokeWidth: 5,
      },
      YValues: []float64{1,3,4,5,4,3,1,6},
      XValues: []float64{1,2,3,4,5,6,7,8},
    },
  },
}

buf := new(bytes.Buffer)
err := sparklinesChart.Render(chart.PNG, buf)
carbocation commented 3 years ago

I have the same issue and question.