(data *GraphData, cfg graphViewArgs)
| 462 | } |
| 463 | |
| 464 | func applyGraphMeta(data *GraphData, cfg graphViewArgs) { |
| 465 | if cfg.Title != "" { |
| 466 | data.Title = cfg.Title |
| 467 | } |
| 468 | if data.Title == "" { |
| 469 | data.Title = i18n.T("plugins.graphview.default_title") |
| 470 | } |
| 471 | data.Theme = cfg.Theme |
| 472 | } |
| 473 | |
| 474 | func readGraphDataFile(path string) (GraphData, error) { |
| 475 | clean := filepath.Clean(path) |